Skip to content

Commit

Permalink
Allow AST plugins to access the raw template contents.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Mar 17, 2017
1 parent aa1b193 commit cae3b4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ TemplateCompiler.prototype.initializeFeatures = function initializeFeatures() {

TemplateCompiler.prototype.processString = function (string, relativePath) {
return 'export default ' + utils.template(this.options.templateCompiler, stripBom(string), {
contents: string,
moduleName: relativePath
}) + ';';
};
Expand Down

0 comments on commit cae3b4f

Please sign in to comment.