rollup-plugin-babel
Advanced tools
Comparing version 2.3.4 to 2.3.5
# rollup-plugin-babel changelog | ||
## 2.3.5 | ||
* Use class transformer local to plugin, not project being built | ||
## 2.3.4 | ||
@@ -4,0 +8,0 @@ |
@@ -6,2 +6,4 @@ 'use strict'; | ||
var rollupPluginutils = require('rollup-pluginutils'); | ||
var classes = require('babel-plugin-transform-es2015-classes'); | ||
classes = 'default' in classes ? classes['default'] : classes; | ||
@@ -22,3 +24,3 @@ var INLINE = {}; | ||
if (!options.plugins) options.plugins = []; | ||
options.plugins.push('transform-es2015-classes'); | ||
options.plugins.push(classes); | ||
@@ -104,3 +106,3 @@ var check = babelCore.transform('export default class Foo {}', options).code; | ||
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... | ||
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'; | ||
@@ -107,0 +109,0 @@ } |
import { join, dirname } from 'path'; | ||
import { transform, buildExternalHelpers } from 'babel-core'; | ||
import { createFilter } from 'rollup-pluginutils'; | ||
import classes from 'babel-plugin-transform-es2015-classes'; | ||
@@ -19,3 +20,3 @@ var INLINE = {}; | ||
if (!options.plugins) options.plugins = []; | ||
options.plugins.push('transform-es2015-classes'); | ||
options.plugins.push(classes); | ||
@@ -101,3 +102,3 @@ var check = transform('export default class Foo {}', options).code; | ||
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... | ||
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'; | ||
@@ -104,0 +105,0 @@ } |
{ | ||
"name": "rollup-plugin-babel", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"description": "Seamless integration between Rollup and Babel.", | ||
@@ -5,0 +5,0 @@ "main": "dist/rollup-plugin-babel.cjs.js", |
import { dirname, join } from 'path'; | ||
import { buildExternalHelpers, transform } from 'babel-core'; | ||
import { createFilter } from 'rollup-pluginutils'; | ||
import classes from 'babel-plugin-transform-es2015-classes'; | ||
@@ -19,3 +20,3 @@ const INLINE = {}; | ||
if ( !options.plugins ) options.plugins = []; | ||
options.plugins.push( 'transform-es2015-classes' ); | ||
options.plugins.push( classes ); | ||
@@ -22,0 +23,0 @@ const check = transform( 'export default class Foo {}', options ).code; |
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
18946
263