babel-plugin-htmlbars-inline-precompile
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -0,1 +1,9 @@ | ||
## 0.0.4 (2015-06-30) | ||
- [Fix "typo" for method which should replace deprecated behavior](https://github.com/pangratz/babel-plugin-htmlbars-inline-precompile/commit/f2458bede137297bd13e8308a35a489754eadc97) | ||
## 0.0.3 (2015-06-26) | ||
- [Replace deprecated behavior of replacing source string - #6](https://github.com/pangratz/babel-plugin-htmlbars-inline-precompile/pull/6). Thanks [@rwjblue](https://github.com/rwjblue). | ||
## 0.0.2 (2015-06-13) | ||
@@ -2,0 +10,0 @@ |
10
index.js
@@ -41,9 +41,9 @@ module.exports = function(precompile) { | ||
var compiledTemplateString = "Ember.HTMLBars.template(" + precompile(template) + ")"; | ||
// Prefer calling replaceWithStringSource if it is present. | ||
// Prefer calling replaceWithSourceString 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); | ||
if (this.replaceWithSourceString) { | ||
this.replaceWithSourceString(compiledTemplateString); | ||
} else { | ||
@@ -50,0 +50,0 @@ return compiledTemplateString; |
{ | ||
"name": "babel-plugin-htmlbars-inline-precompile", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"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
7413