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

rollup-plugin-babel

Package Overview
Dependencies
Maintainers
27
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.7.1 to 3.0.0-alpha.12

27

dist/rollup-plugin-babel.cjs.js

@@ -10,16 +10,2 @@ 'use strict';

function assign ( target, source ) {
Object.keys( source ).forEach( function (key) {
target[ key ] = source[ key ];
});
return target;
}
var warned = {};
function warnOnce ( warn, msg ) {
if ( warned[ msg ] ) { return; }
warned[ msg ] = true;
warn( msg );
}
var INLINE = {};

@@ -37,3 +23,3 @@ var RUNTIME = {};

options = assign( {}, options );
options = Object.assign( {}, options );
delete options.only;

@@ -64,6 +50,13 @@ delete options.ignore;

var warned = {};
function warnOnce ( warn, msg ) {
if ( warned[ msg ] ) { return; }
warned[ msg ] = true;
warn( msg );
}
var keywordHelpers = [ 'typeof', 'extends', 'instanceof' ];
function babel ( options ) {
options = assign( {}, options || {} );
options = Object.assign( {}, options || {} );
var inlineHelpers = {};

@@ -121,3 +114,3 @@

var helpers = preflightCheck( options, path.dirname( id ) );
var localOpts = assign({ filename: id }, options );
var localOpts = Object.assign({ filename: id }, options );

@@ -124,0 +117,0 @@ var transformed = babelCore.transform( code, localOpts );

@@ -6,16 +6,2 @@ import { dirname, join } from 'path';

function assign ( target, source ) {
Object.keys( source ).forEach( function (key) {
target[ key ] = source[ key ];
});
return target;
}
var warned = {};
function warnOnce ( warn, msg ) {
if ( warned[ msg ] ) { return; }
warned[ msg ] = true;
warn( msg );
}
var INLINE = {};

@@ -33,3 +19,3 @@ var RUNTIME = {};

options = assign( {}, options );
options = Object.assign( {}, options );
delete options.only;

@@ -60,6 +46,13 @@ delete options.ignore;

var warned = {};
function warnOnce ( warn, msg ) {
if ( warned[ msg ] ) { return; }
warned[ msg ] = true;
warn( msg );
}
var keywordHelpers = [ 'typeof', 'extends', 'instanceof' ];
function babel ( options ) {
options = assign( {}, options || {} );
options = Object.assign( {}, options || {} );
var inlineHelpers = {};

@@ -117,3 +110,3 @@

var helpers = preflightCheck( options, dirname( id ) );
var localOpts = assign({ filename: id }, options );
var localOpts = Object.assign({ filename: id }, options );

@@ -120,0 +113,0 @@ var transformed = transform( code, localOpts );

{
"name": "rollup-plugin-babel",
"version": "2.7.1",
"version": "3.0.0-alpha.12",
"description": "Seamless integration between Rollup and Babel.",

@@ -34,12 +34,11 @@ "main": "dist/rollup-plugin-babel.cjs.js",

"dependencies": {
"babel-core": "6",
"babel-plugin-transform-es2015-classes": "^6.9.0",
"object-assign": "^4.1.0",
"babel-core": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-classes": "7.0.0-alpha.12",
"rollup-pluginutils": "^1.5.0"
},
"devDependencies": {
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-es2015-rollup": "^3.0.0",
"babel-plugin-external-helpers": "7.0.0-alpha.12",
"babel-plugin-transform-decorators": "7.0.0-alpha.12",
"babel-plugin-transform-runtime": "7.0.0-alpha.12",
"babel-preset-es2015": "7.0.0-alpha.12",
"buble": "^0.14.2",

@@ -53,6 +52,3 @@ "eslint": "^3.12.0",

},
"repository": {
"type": "git",
"url": "git+https://github.com/rollup/rollup-plugin-babel.git"
},
"repository": "rollup/rollup-plugin-babel",
"bugs": {

@@ -59,0 +55,0 @@ "url": "https://github.com/rollup/rollup-plugin-babel/issues"

@@ -5,3 +5,3 @@ import { dirname } from 'path';

import preflightCheck from './preflightCheck.js';
import { assign, warnOnce } from './utils.js';
import { warnOnce } from './utils.js';
import { RUNTIME, BUNDLED, HELPERS } from './constants.js';

@@ -12,3 +12,3 @@

export default function babel ( options ) {
options = assign( {}, options || {} );
options = Object.assign( {}, options || {} );
let inlineHelpers = {};

@@ -66,3 +66,3 @@

const helpers = preflightCheck( options, dirname( id ) );
const localOpts = assign({ filename: id }, options );
const localOpts = Object.assign({ filename: id }, options );

@@ -69,0 +69,0 @@ const transformed = transform( code, localOpts );

import { join } from 'path';
import { assign } from './utils.js';
import { transform } from 'babel-core';

@@ -13,3 +12,3 @@ import { INLINE, RUNTIME, BUNDLED } from './constants.js';

options = assign( {}, options );
options = Object.assign( {}, options );
delete options.only;

@@ -16,0 +15,0 @@ delete options.ignore;

@@ -1,8 +0,1 @@

export function assign ( target, source ) {
Object.keys( source ).forEach( key => {
target[ key ] = source[ key ];
});
return target;
}
let warned = {};

@@ -9,0 +2,0 @@ export function warnOnce ( warn, msg ) {

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