Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-babel

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-babel - npm Package Compare versions

Comparing version 2.3.4 to 2.3.5

4

CHANGELOG.md
# 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

dist/rollup-plugin-babel.cjs.js

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc