babel-plugin-namespace-amd-define
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -11,3 +11,7 @@ 'use strict'; | ||
var namespaceVisitor = { | ||
ExpressionStatement: function ExpressionStatement(path) { | ||
ExpressionStatement: function ExpressionStatement(path, state) { | ||
if (state.namespaced) { | ||
path.stop(); | ||
} | ||
var node = path.node; | ||
@@ -24,2 +28,3 @@ var expression = node.expression; | ||
state.namespaced = true; | ||
path.stop(); | ||
@@ -26,0 +31,0 @@ } |
{ | ||
"name": "babel-plugin-namespace-amd-define", | ||
"version": "0.5.0", | ||
"description": "A Babel plugin to namespace AMD define() calls.", | ||
"version": "0.6.0", | ||
"description": "A Babel plugin to namespace (prefix) AMD define() calls.", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"build": "babel --source-maps -D -d lib src", | ||
"prepublish": "babel --source-maps -D -d lib src" | ||
"prepublish": "npm run build" | ||
}, | ||
@@ -10,0 +10,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
72952
12
2288
0
53
1