rollup-plugin-babel
Advanced tools
Comparing version 4.1.0-0 to 4.1.0-1
@@ -185,3 +185,3 @@ 'use strict'; | ||
if (!helpers) { | ||
return { code: code }; | ||
return null; | ||
} | ||
@@ -207,3 +207,3 @@ | ||
if (!transformed) { | ||
return { code: code }; | ||
return null; | ||
} | ||
@@ -210,0 +210,0 @@ |
@@ -183,3 +183,3 @@ import { join, dirname } from 'path'; | ||
if (!helpers) { | ||
return { code: code }; | ||
return null; | ||
} | ||
@@ -205,3 +205,3 @@ | ||
if (!transformed) { | ||
return { code: code }; | ||
return null; | ||
} | ||
@@ -208,0 +208,0 @@ |
{ | ||
"name": "rollup-plugin-babel", | ||
"version": "4.1.0-0", | ||
"version": "4.1.0-1", | ||
"description": "Seamless integration between Rollup and Babel.", | ||
@@ -25,3 +25,2 @@ "main": "dist/rollup-plugin-babel.cjs.js", | ||
"test": "mocha", | ||
"precommit": "lint-staged", | ||
"prepare": "npm run build", | ||
@@ -50,3 +49,3 @@ "prepublish": "npm run lint && npm test", | ||
"eslint": "^5.0.1", | ||
"husky": "^0.14.3", | ||
"husky": "^1.0.1", | ||
"lint-staged": "^7.2.2", | ||
@@ -53,0 +52,0 @@ "mocha": "^5.2.0", |
@@ -53,2 +53,3 @@ # rollup-plugin-babel | ||
- `options.externalHelpersWhitelist`: an array which gives explicit control over which babelHelper functions are allowed in the bundle (by default, every helper is allowed) | ||
- `options.extensions`: an array of file extensions that Babel should transpile (by default the Babel defaults of .js, .jsx, .es6, .es, .mjs. are used) | ||
@@ -108,6 +109,6 @@ Babel will respect `.babelrc` files – this is generally the best place to put your configuration. | ||
plugins: [ | ||
babel({ | ||
babelrc: false, | ||
presets: [['env', { modules: false }]], | ||
}), | ||
babel({ | ||
babelrc: false, | ||
presets: [['env', { modules: false }]], | ||
}), | ||
]; | ||
@@ -114,0 +115,0 @@ ``` |
@@ -81,3 +81,3 @@ import { buildExternalHelpers, DEFAULT_EXTENSIONS, loadPartialConfig, transform } from '@babel/core'; | ||
if (!helpers) { | ||
return { code }; | ||
return null; | ||
} | ||
@@ -105,3 +105,3 @@ | ||
if (!transformed) { | ||
return { code }; | ||
return null; | ||
} | ||
@@ -108,0 +108,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
56349
143