mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
fix: bring back @babel/env preset match (#714)
This commit is contained in:
parent
ffcc9d9b7d
commit
7b2ff57f87
@ -47,7 +47,8 @@ const createConfigItems = (babel, type, items) => {
|
||||
};
|
||||
|
||||
const environmentPreset = '@babel/preset-env';
|
||||
const presetEnvRegex = new RegExp(environmentPreset);
|
||||
// capture both @babel/env & @babel/preset-env (https://babeljs.io/docs/en/presets#preset-shorthand)
|
||||
const presetEnvRegex = new RegExp(/@babel\/(preset-)?env/);
|
||||
|
||||
export default () => {
|
||||
return createBabelInputPluginFactory(babelCore => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user