systemjs-plugin-babel
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -379,2 +379,1 @@ (function (global) { | ||
})(typeof global === "undefined" ? self : global); | ||
{ | ||
"name": "systemjs-plugin-babel", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"registry": "npm", | ||
@@ -5,0 +5,0 @@ "jspmPackage": true, |
@@ -94,6 +94,14 @@ var babel = require('systemjs-babel-build').babel; | ||
babelOptions.plugins.forEach(function(plugin) { | ||
if (typeof plugin == 'string') | ||
pluginAndPresetModuleLoads.push(pluginLoader['import'](plugin, module.id)); | ||
else if (Array.isArray(plugin) && typeof plugin[0] == 'string') | ||
pluginAndPresetModuleLoads.push(pluginLoader['import'](plugin[0], module.id)); | ||
plugin = typeof plugin == 'string' ? plugin : Array.isArray(plugin) && typeof plugin[0] == 'string' && plugin[0]; | ||
if (!plugin) | ||
return; | ||
pluginAndPresetModuleLoads.push( | ||
pluginLoader.normalize(plugin, module.id) | ||
.then(function(normalized) { | ||
return pluginLoader.load(normalized) | ||
.then(function() { | ||
return pluginLoader.get(normalized)['default']; | ||
}); | ||
}) | ||
); | ||
}); | ||
@@ -100,0 +108,0 @@ |
@@ -314,7 +314,5 @@ export default (function(module) { | ||
if (method === "next") { | ||
if (state === GenStateSuspendedYield) { | ||
context.sent = arg; | ||
} else { | ||
context.sent = undefined; | ||
} | ||
// Setting context._sent for legacy support of Babel's | ||
// function.sent implementation. | ||
context.sent = context._sent = arg; | ||
@@ -492,3 +490,5 @@ } else if (method === "throw") { | ||
this.next = 0; | ||
this.sent = undefined; | ||
// Resetting context._sent for legacy support of Babel's | ||
// function.sent implementation. | ||
this.sent = this._sent = undefined; | ||
this.done = false; | ||
@@ -495,0 +495,0 @@ this.delegate = null; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
8
2151656
35
44496
1
0
2