rollup-plugin-babel
Advanced tools
Comparing version 3.0.5 to 3.0.6
@@ -132,3 +132,5 @@ 'use strict'; | ||
"\n\nexport { " + (keywordHelpers.map( function (word) { return ("_" + word + " as " + word); }).join( ', ')) + " }"; | ||
// Apply babel transforming on helpers, in case ES5/ES3 transform plugins are set in options. | ||
helpers = babelCore.transform( helpers, options ).code; | ||
return helpers; | ||
@@ -135,0 +137,0 @@ } |
@@ -130,3 +130,5 @@ import { dirname, join } from 'path'; | ||
"\n\nexport { " + (keywordHelpers.map( function (word) { return ("_" + word + " as " + word); }).join( ', ')) + " }"; | ||
// Apply babel transforming on helpers, in case ES5/ES3 transform plugins are set in options. | ||
helpers = transform( helpers, options ).code; | ||
return helpers; | ||
@@ -133,0 +135,0 @@ } |
{ | ||
"name": "rollup-plugin-babel", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "Seamless integration between Rollup and Babel.", | ||
@@ -5,0 +5,0 @@ "main": "dist/rollup-plugin-babel.cjs.js", |
@@ -51,3 +51,3 @@ import { dirname } from 'path'; | ||
const helpers = buildExternalHelpers( externalHelpersWhitelist, 'var' ) | ||
let helpers = buildExternalHelpers( externalHelpersWhitelist, 'var' ) | ||
.replace(/^var babelHelpers = \{\};\n/gm, '') | ||
@@ -58,3 +58,5 @@ .replace(/\nbabelHelpers;$/gm, '') | ||
`\n\nexport { ${keywordHelpers.map( word => `_${word} as ${word}`).join( ', ')} }`; | ||
// Apply babel transforming on helpers, in case ES5/ES3 transform plugins are set in options. | ||
helpers = transform( helpers, options ).code; | ||
return helpers; | ||
@@ -61,0 +63,0 @@ } |
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
28341
423