rollup-plugin-babel
Advanced tools
Comparing version 3.0.0-alpha.17 to 3.0.0
'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var path = require('path'); | ||
var babelCore = require('babel-core'); | ||
var rollupPluginutils = require('rollup-pluginutils'); | ||
var classes = _interopDefault(require('babel-plugin-transform-es2015-classes')); | ||
@@ -16,2 +13,12 @@ var INLINE = {}; | ||
function importHelperPlugin () { | ||
return { | ||
visitor: { | ||
Program: function Program (path$$1, state) { | ||
state.file.addHelper('classCallCheck'); | ||
} | ||
} | ||
}; | ||
} | ||
var preflightCheckResults = {}; | ||
@@ -29,3 +36,3 @@ | ||
options.plugins = options.plugins ? options.plugins.concat( classes ) : [ classes ]; | ||
options.plugins = options.plugins ? options.plugins.concat( importHelperPlugin ) : [ importHelperPlugin ]; | ||
@@ -32,0 +39,0 @@ var check = babelCore.transform( 'export default class Foo {}', options ).code; |
import { dirname, join } from 'path'; | ||
import { buildExternalHelpers, transform } from 'babel-core'; | ||
import { createFilter } from 'rollup-pluginutils'; | ||
import classes from 'babel-plugin-transform-es2015-classes'; | ||
@@ -12,2 +11,12 @@ var INLINE = {}; | ||
function importHelperPlugin () { | ||
return { | ||
visitor: { | ||
Program: function Program (path$$1, state) { | ||
state.file.addHelper('classCallCheck'); | ||
} | ||
} | ||
}; | ||
} | ||
var preflightCheckResults = {}; | ||
@@ -25,3 +34,3 @@ | ||
options.plugins = options.plugins ? options.plugins.concat( classes ) : [ classes ]; | ||
options.plugins = options.plugins ? options.plugins.concat( importHelperPlugin ) : [ importHelperPlugin ]; | ||
@@ -28,0 +37,0 @@ var check = transform( 'export default class Foo {}', options ).code; |
{ | ||
"name": "rollup-plugin-babel", | ||
"version": "3.0.0-alpha.17", | ||
"version": "3.0.0", | ||
"description": "Seamless integration between Rollup and Babel.", | ||
@@ -34,7 +34,9 @@ "main": "dist/rollup-plugin-babel.cjs.js", | ||
"dependencies": { | ||
"babel-core": "7.0.0-alpha.17", | ||
"babel-plugin-transform-es2015-classes": "7.0.0-alpha.17", | ||
"rollup-pluginutils": "^1.5.0" | ||
}, | ||
"peerDependencies": { | ||
"babel-core": "6 || 7 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0-rc" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "7.0.0-alpha.17", | ||
"babel-plugin-external-helpers": "7.0.0-alpha.17", | ||
@@ -41,0 +43,0 @@ "babel-plugin-transform-decorators": "7.0.0-alpha.17", |
import { join } from 'path'; | ||
import { transform } from 'babel-core'; | ||
import { INLINE, RUNTIME, BUNDLED } from './constants.js'; | ||
import classes from 'babel-plugin-transform-es2015-classes'; | ||
import importHelperPlugin from './helperPlugin.js'; | ||
@@ -18,3 +18,3 @@ let preflightCheckResults = {}; | ||
options.plugins = options.plugins ? options.plugins.concat( classes ) : [ classes ]; | ||
options.plugins = options.plugins ? options.plugins.concat( importHelperPlugin ) : [ importHelperPlugin ]; | ||
@@ -21,0 +21,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
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
25073
2
11
352
0
12
1
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/compat-data@7.26.2(transitive)
+ Added@babel/core@7.26.0(transitive)
+ Added@babel/generator@7.26.2(transitive)
+ Added@babel/helper-compilation-targets@7.25.9(transitive)
+ Added@babel/helper-module-imports@7.25.9(transitive)
+ Added@babel/helper-module-transforms@7.26.0(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/helper-validator-option@7.25.9(transitive)
+ Added@babel/helpers@7.26.0(transitive)
+ Added@babel/parser@7.26.2(transitive)
+ Added@babel/template@7.25.9(transitive)
+ Added@babel/traverse@7.25.9(transitive)
+ Added@babel/types@7.26.0(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addedbabel-core@7.0.0-bridge.0(transitive)
+ Addedbrowserslist@4.24.2(transitive)
+ Addedcaniuse-lite@1.0.30001679(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedelectron-to-chromium@1.5.55(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@3.0.2(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-releases@2.0.18(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedupdate-browserslist-db@1.1.1(transitive)
+ Addedyallist@3.1.1(transitive)
- Removedbabel-core@7.0.0-alpha.17
- Removedbabel-plugin-transform-es2015-classes@7.0.0-alpha.17
- Removedansi-styles@3.2.1(transitive)
- Removedarr-diff@2.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarray-unique@0.2.1(transitive)
- Removedbabel-code-frame@7.0.0-alpha.17(transitive)
- Removedbabel-core@7.0.0-alpha.17(transitive)
- Removedbabel-generator@7.0.0-alpha.17(transitive)
- Removedbabel-helper-define-map@7.0.0-alpha.17(transitive)
- Removedbabel-helper-function-name@7.0.0-alpha.17(transitive)
- Removedbabel-helper-get-function-arity@7.0.0-alpha.17(transitive)
- Removedbabel-helper-optimise-call-expression@7.0.0-alpha.17(transitive)
- Removedbabel-helper-replace-supers@7.0.0-alpha.17(transitive)
- Removedbabel-helpers@7.0.0-alpha.17(transitive)
- Removedbabel-messages@7.0.0-alpha.17(transitive)
- Removedbabel-plugin-transform-es2015-classes@7.0.0-alpha.17(transitive)
- Removedbabel-template@7.0.0-alpha.17(transitive)
- Removedbabel-traverse@7.0.0-alpha.17(transitive)
- Removedbabel-types@7.0.0-alpha.17(transitive)
- Removedbabylon@7.0.0-beta.18(transitive)
- Removedbraces@1.8.5(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removeddebug@2.6.9(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedesutils@2.0.3(transitive)
- Removedexpand-brackets@0.1.5(transitive)
- Removedexpand-range@1.8.2(transitive)
- Removedextglob@0.3.2(transitive)
- Removedfilename-regex@2.0.1(transitive)
- Removedfill-range@2.2.4(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedglob-base@0.3.0(transitive)
- Removedglob-parent@2.0.0(transitive)
- Removedglobals@10.4.0(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-dotfile@1.0.3(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extendable@0.1.1(transitive)
- Removedis-extglob@1.0.0(transitive)
- Removedis-glob@2.0.1(transitive)
- Removedis-number@2.1.04.0.0(transitive)
- Removedis-posix-bracket@0.1.1(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@2.1.0(transitive)
- Removedjs-tokens@3.0.2(transitive)
- Removedjsesc@2.5.2(transitive)
- Removedjson5@0.5.1(transitive)
- Removedkind-of@3.2.26.0.3(transitive)
- Removedlodash@4.17.21(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedmath-random@1.0.4(transitive)
- Removedmicromatch@2.3.11(transitive)
- Removedms@2.0.0(transitive)
- Removednormalize-path@2.1.1(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedparse-glob@3.0.4(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpreserve@0.2.0(transitive)
- Removedrandomatic@3.1.1(transitive)
- Removedregex-cache@0.4.4(transitive)
- Removedremove-trailing-separator@1.1.0(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedto-fast-properties@2.0.0(transitive)
- Removedtrim-right@1.0.1(transitive)