babel-plugin-htmlbars-inline-precompile
Advanced tools
Comparing version 0.0.2 to 0.0.3
12
index.js
@@ -40,3 +40,13 @@ module.exports = function(precompile) { | ||
return "Ember.HTMLBars.template(" + precompile(template) + ")"; | ||
var compiledTemplateString = "Ember.HTMLBars.template(" + precompile(template) + ")"; | ||
// Prefer calling replaceWithStringSource if it is present. | ||
// this prevents a deprecation warning in Babel 5.6.7+. | ||
// | ||
// TODO: delete the fallback once we only support babel >= 5.6.7. | ||
if (this.replaceWithStringSource) { | ||
this.replaceWithStringSource(compiledTemplateString); | ||
} else { | ||
return compiledTemplateString; | ||
} | ||
} | ||
@@ -43,0 +53,0 @@ } |
{ | ||
"name": "babel-plugin-htmlbars-inline-precompile", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Babel plugin to replace tagged template strings with precompiled HTMLBars templates", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7004
96