🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

transvueify-plugin-babel

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transvueify-plugin-babel - npm Package Compare versions

Comparing version

to
0.0.2

4

index.js
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",