rollup-plugin-babel
Advanced tools
Comparing version 2.7.1 to 3.0.0-alpha.12
@@ -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 ) { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
3
0
24761
328
1
1
1
+ Addedarr-diff@2.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarray-unique@0.2.1(transitive)
+ Addedbabel-code-frame@7.0.0-alpha.12(transitive)
+ Addedbabel-core@7.0.0-alpha.12(transitive)
+ Addedbabel-generator@7.0.0-alpha.12(transitive)
+ Addedbabel-helper-define-map@7.0.0-alpha.12(transitive)
+ Addedbabel-helper-function-name@7.0.0-alpha.12(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-alpha.12(transitive)
+ Addedbabel-helper-optimise-call-expression@7.0.0-alpha.12(transitive)
+ Addedbabel-helper-replace-supers@7.0.0-alpha.12(transitive)
+ Addedbabel-helpers@7.0.0-alpha.12(transitive)
+ Addedbabel-messages@7.0.0-alpha.12(transitive)
+ Addedbabel-plugin-transform-es2015-classes@7.0.0-alpha.12(transitive)
+ Addedbabel-template@7.0.0-alpha.12(transitive)
+ Addedbabel-traverse@7.0.0-alpha.12(transitive)
+ Addedbabel-types@7.0.0-alpha.12(transitive)
+ Addedbabylon@7.0.0-beta.12(transitive)
+ Addedbraces@1.8.5(transitive)
+ Addedexpand-brackets@0.1.5(transitive)
+ Addedexpand-range@1.8.2(transitive)
+ Addedextglob@0.3.2(transitive)
+ Addedfilename-regex@2.0.1(transitive)
+ Addedfill-range@2.2.4(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@0.1.5(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedglob-base@0.3.0(transitive)
+ Addedglob-parent@2.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedis-dotfile@1.0.3(transitive)
+ Addedis-equal-shallow@0.1.3(transitive)
+ Addedis-extendable@0.1.1(transitive)
+ Addedis-extglob@1.0.0(transitive)
+ Addedis-glob@2.0.1(transitive)
+ Addedis-number@2.1.04.0.0(transitive)
+ Addedis-posix-bracket@0.1.1(transitive)
+ Addedis-primitive@2.0.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisobject@2.1.0(transitive)
+ Addedkind-of@3.2.26.0.3(transitive)
+ Addedmath-random@1.0.4(transitive)
+ Addedmicromatch@2.3.11(transitive)
+ Addednormalize-path@2.1.1(transitive)
+ Addedobject.omit@2.0.1(transitive)
+ Addedparse-glob@3.0.4(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpreserve@0.2.0(transitive)
+ Addedrandomatic@3.1.1(transitive)
+ Addedregex-cache@0.4.4(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedobject-assign@^4.1.0
- Removedbabel-code-frame@6.26.0(transitive)
- Removedbabel-core@6.26.3(transitive)
- Removedbabel-generator@6.26.1(transitive)
- Removedbabel-helper-define-map@6.26.0(transitive)
- Removedbabel-helper-function-name@6.24.1(transitive)
- Removedbabel-helper-get-function-arity@6.24.1(transitive)
- Removedbabel-helper-optimise-call-expression@6.24.1(transitive)
- Removedbabel-helper-replace-supers@6.24.1(transitive)
- Removedbabel-helpers@6.24.1(transitive)
- Removedbabel-messages@6.23.0(transitive)
- Removedbabel-plugin-transform-es2015-classes@6.24.1(transitive)
- Removedbabel-register@6.26.0(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedbabel-template@6.26.0(transitive)
- Removedbabel-traverse@6.26.0(transitive)
- Removedbabel-types@6.26.0(transitive)
- Removedbabylon@6.18.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedhome-or-tmp@2.0.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedsource-map-support@0.4.18(transitive)
Updatedbabel-core@7.0.0-alpha.12