@rollup/plugin-babel
Advanced tools
Comparing version 5.2.0 to 5.2.1
# @rollup/plugin-babel ChangeLog | ||
## v5.2.1 | ||
_2020-09-09_ | ||
### Updates | ||
- chore: add deprecation/migration warnings for the runtime (#534) | ||
## v5.2.0 | ||
@@ -4,0 +12,0 @@ |
@@ -261,2 +261,10 @@ import * as babel from '@babel/core'; | ||
const warnAboutDeprecatedHelpersOption = ({ | ||
deprecatedOption, | ||
suggestion | ||
}) => { | ||
// eslint-disable-next-line no-console | ||
console.warn(`\`${deprecatedOption}\` has been removed in favor a \`babelHelpers\` option. Try changing your configuration to \`${suggestion}\`. ` + `Refer to the documentation to learn more: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers`); | ||
}; | ||
const unpackInputPluginOptions = (_ref2, rollupVersion) => { | ||
@@ -268,3 +276,13 @@ let { | ||
if (!rest.babelHelpers) { | ||
if ('runtimeHelpers' in rest) { | ||
warnAboutDeprecatedHelpersOption({ | ||
deprecatedOption: 'runtimeHelpers', | ||
suggestion: `babelHelpers: 'runtime'` | ||
}); | ||
} else if ('externalHelpers' in rest) { | ||
warnAboutDeprecatedHelpersOption({ | ||
deprecatedOption: 'externalHelpers', | ||
suggestion: `babelHelpers: 'external'` | ||
}); | ||
} else if (!rest.babelHelpers) { | ||
// eslint-disable-next-line no-console | ||
@@ -271,0 +289,0 @@ console.warn("babelHelpers: 'bundled' option was used by default. It is recommended to configure this option explicitly, read more here: " + 'https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers'); |
@@ -264,2 +264,10 @@ 'use strict'; | ||
const warnAboutDeprecatedHelpersOption = ({ | ||
deprecatedOption, | ||
suggestion | ||
}) => { | ||
// eslint-disable-next-line no-console | ||
console.warn(`\`${deprecatedOption}\` has been removed in favor a \`babelHelpers\` option. Try changing your configuration to \`${suggestion}\`. ` + `Refer to the documentation to learn more: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers`); | ||
}; | ||
const unpackInputPluginOptions = (_ref2, rollupVersion) => { | ||
@@ -271,3 +279,13 @@ let { | ||
if (!rest.babelHelpers) { | ||
if ('runtimeHelpers' in rest) { | ||
warnAboutDeprecatedHelpersOption({ | ||
deprecatedOption: 'runtimeHelpers', | ||
suggestion: `babelHelpers: 'runtime'` | ||
}); | ||
} else if ('externalHelpers' in rest) { | ||
warnAboutDeprecatedHelpersOption({ | ||
deprecatedOption: 'externalHelpers', | ||
suggestion: `babelHelpers: 'external'` | ||
}); | ||
} else if (!rest.babelHelpers) { | ||
// eslint-disable-next-line no-console | ||
@@ -274,0 +292,0 @@ console.warn("babelHelpers: 'bundled' option was used by default. It is recommended to configure this option explicitly, read more here: " + 'https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers'); |
{ | ||
"name": "@rollup/plugin-babel", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
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
60557
882