-
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
Creating an optimized production build...
Compiled with warnings.
./node_modules/@babel/standalone/babel.js
Critical dependency: the request of a dependency is an expression
./node_modules/@babel/standalone/babel.js
Critical dependency: the request of a dependency is an expression临时解决方案
$ CI=false npm run docmodule.exports = {
//...
module: {
exprContextCritical: false
},
};export default (conf: Configuration, env: 'development' | 'production', options: LoaderConfOptions) => {
if (env === 'production') {
/** https://github.com/uiwjs/react-code-preview/issues/94 */
conf.module!.exprContextCritical = false;
}
return conf;
};- https://webpack.js.org/configuration/module/#module-contexts
- https://stackoverflow.com/a/65857316/1334703
Originally posted by @jaywcjlove in #198 (comment)
Metadata
Metadata
Assignees
Labels
No labels