Skip to content

Commit

Permalink
Merge pull request #95 from glimmerjs/reexport-compiler
Browse files Browse the repository at this point in the history
Reexport precompile from babel-plugin-component-templates
  • Loading branch information
chadhietala authored Feb 1, 2021
2 parents 22a18c4 + b345669 commit 788990e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/@glimmerx/babel-plugin-component-templates/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const glimmerPrecompileTemplate = require('@glimmer/babel-plugin-strict-template
.precompileTemplate;
const { addNamed } = require('@babel/helper-module-imports');
const { traverse, preprocess } = require('@glimmer/syntax');
const { precompile } = require('@glimmer/compiler');

/* AST.Node reference: https://github.com/glimmerjs/glimmer-vm/blob/master/packages/%40glimmer/syntax/lib/types/nodes.ts#L268 */

Expand Down Expand Up @@ -364,3 +365,5 @@ module.exports = function (babel, options) {
};

module.exports.getTemplateTokens = getTemplateTokens;
// Reexport the precompile function from @glimmer/compiler for any other babel plugins so that they have consistent versioning for the compiler
module.exports.precompile = precompile;

0 comments on commit 788990e

Please sign in to comment.