rollup-plugin-babel
Advanced tools
Comparing version 2.3.2 to 2.3.3
# rollup-plugin-babel changelog | ||
## 2.3.3 | ||
* Fix helper renaming ([#22](https://github.com/rollup/rollup-plugin-babel/issues/22)) | ||
## 2.3.1-2 | ||
* Include correct files in npm package | ||
## 2.3.0 | ||
@@ -4,0 +12,0 @@ |
@@ -17,3 +17,3 @@ 'use strict'; | ||
if (~check.indexOf('function _classCallCheck')) return INLINE; | ||
if (~check.indexOf('babelHelpers.classCallCheck')) return BUNDLED; | ||
if (~check.indexOf('babelHelpers')) return BUNDLED; | ||
@@ -90,3 +90,3 @@ throw new Error('An unexpected situation arose. Please raise an issue at https://github.com/rollup/rollup-plugin-babel/issues. Thanks!'); | ||
return babelCore.buildExternalHelpers(helpers, 'var').replace(/var babelHelpers.+\n/, '').replace(/babelHelpers\.(.+) = function/g, 'function babelHelpers_$1').replace(/babelHelpers\.(.+) = /g, 'var babelHelpers_$1 = ').replace('babelHelpers;', '') // not sure where this comes from... | ||
return babelCore.buildExternalHelpers(helpers, 'var').replace(/var babelHelpers.+\n/, '').replace(/babelHelpers\.(.+) = function(?: \w+)?/g, 'function babelHelpers_$1').replace(/babelHelpers\.(.+) = /g, 'var babelHelpers_$1 = ').replace('babelHelpers;', '') // not sure where this comes from... | ||
.trim() + '\n'; | ||
@@ -93,0 +93,0 @@ } |
@@ -15,3 +15,3 @@ import { transform, buildExternalHelpers } from 'babel-core'; | ||
if (~check.indexOf('function _classCallCheck')) return INLINE; | ||
if (~check.indexOf('babelHelpers.classCallCheck')) return BUNDLED; | ||
if (~check.indexOf('babelHelpers')) return BUNDLED; | ||
@@ -88,3 +88,3 @@ throw new Error('An unexpected situation arose. Please raise an issue at https://github.com/rollup/rollup-plugin-babel/issues. Thanks!'); | ||
return buildExternalHelpers(helpers, 'var').replace(/var babelHelpers.+\n/, '').replace(/babelHelpers\.(.+) = function/g, 'function babelHelpers_$1').replace(/babelHelpers\.(.+) = /g, 'var babelHelpers_$1 = ').replace('babelHelpers;', '') // not sure where this comes from... | ||
return buildExternalHelpers(helpers, 'var').replace(/var babelHelpers.+\n/, '').replace(/babelHelpers\.(.+) = function(?: \w+)?/g, 'function babelHelpers_$1').replace(/babelHelpers\.(.+) = /g, 'var babelHelpers_$1 = ').replace('babelHelpers;', '') // not sure where this comes from... | ||
.trim() + '\n'; | ||
@@ -91,0 +91,0 @@ } |
{ | ||
"name": "rollup-plugin-babel", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "Seamless integration between Rollup and Babel.", | ||
@@ -5,0 +5,0 @@ "main": "dist/rollup-plugin-babel.cjs.js", |
@@ -15,3 +15,3 @@ import { buildExternalHelpers, transform } from 'babel-core'; | ||
if ( ~check.indexOf( 'function _classCallCheck' ) ) return INLINE; | ||
if ( ~check.indexOf( 'babelHelpers.classCallCheck' ) ) return BUNDLED; | ||
if ( ~check.indexOf( 'babelHelpers' ) ) return BUNDLED; | ||
@@ -90,3 +90,3 @@ throw new Error( 'An unexpected situation arose. Please raise an issue at https://github.com/rollup/rollup-plugin-babel/issues. Thanks!' ); | ||
.replace( /var babelHelpers.+\n/, '' ) | ||
.replace( /babelHelpers\.(.+) = function/g, 'function babelHelpers_$1' ) | ||
.replace( /babelHelpers\.(.+) = function(?: \w+)?/g, 'function babelHelpers_$1' ) | ||
.replace( /babelHelpers\.(.+) = /g, 'var babelHelpers_$1 = ' ) | ||
@@ -93,0 +93,0 @@ .replace( 'babelHelpers;', '' ) // not sure where this comes from... |
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
16026
229
0