We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39602c7 commit aea04f8Copy full SHA for aea04f8
index.js
@@ -72,9 +72,13 @@ class BabelProcessor {
72
try {
73
config.presets && config.presets.forEach((v, i, a) => {
74
if (Array.isArray(v) && typeof v[0] === 'string') {
75
- v[0] = '@babel/preset-' + v[0];
+ if (!v[0].startsWith('@babel/')) {
76
+ v[0] = '@babel/preset-' + v[0];
77
+ }
78
} else if (typeof v === 'string') {
- a[i] = '@babel/preset-' + v;
79
+ if (!v.startsWith('@babel/')) {
80
+ a[i] = '@babel/preset-' + v;
81
82
}
83
});
84
config.plugins && config.plugins.forEach((v, i, a) => {
0 commit comments