transvueify-plugin-babel
Advanced tools
Comparing version 0.0.1 to 0.0.2
const babel = require('babel-core'); | ||
module.exports = function(compiledVueFile) { | ||
module.exports = function(compiledVueFile, filename) { | ||
if (!compiledVueFile.script) { | ||
return compiledVueFile; | ||
} | ||
const babelOutput = babel.transform(compiledVueFile.script.content); | ||
const babelOutput = babel.transform(compiledVueFile.script.content, {filename}); | ||
compiledVueFile.script.content = babelOutput.code; | ||
return compiledVueFile; | ||
}; |
{ | ||
"name": "transvueify-plugin-babel", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A babel plugin for transvueify", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1115