File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/cli/uni-builder/src/webpack/plugins Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { getBabelConfigForNode } from '@modern-js/babel-preset/node';
3
3
import { getBabelConfigForWeb } from '@modern-js/babel-preset/web' ;
4
4
import {
5
5
applyOptionsChain ,
6
- isPlainObject ,
6
+ isObject ,
7
7
isSupportAutomaticJsx ,
8
8
} from '@modern-js/utils' ;
9
9
import { logger } from '@rsbuild/core' ;
@@ -128,11 +128,10 @@ export const pluginBabel = (
128
128
{ removeImport : true } ,
129
129
] ) ;
130
130
}
131
-
132
131
const babelConfig = applyOptionsChain (
133
132
baseBabelConfig ,
134
133
// ensure that each environment has its own babel options(plugins, presets, etc.) in multi-environments.
135
- isPlainObject ( options ?. babelLoaderOptions )
134
+ isObject ( options ?. babelLoaderOptions )
136
135
? lodash . cloneDeep ( options ?. babelLoaderOptions )
137
136
: options ?. babelLoaderOptions ,
138
137
{
You can’t perform that action at this time.
0 commit comments