We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffcc9d9 commit 7b2ff57Copy full SHA for 7b2ff57
1 file changed
src/lib/babel-custom.js
@@ -47,7 +47,8 @@ const createConfigItems = (babel, type, items) => {
47
};
48
49
const environmentPreset = '@babel/preset-env';
50
-const presetEnvRegex = new RegExp(environmentPreset);
+// capture both @babel/env & @babel/preset-env (https://babeljs.io/docs/en/presets#preset-shorthand)
51
+const presetEnvRegex = new RegExp(/@babel\/(preset-)?env/);
52
53
export default () => {
54
return createBabelInputPluginFactory(babelCore => {
0 commit comments