Skip to content

Commit

Permalink
chore(website): Fix startup service "Critical dependency" warning.
Browse files Browse the repository at this point in the history
uiwjs/react-code-preview#94

Critical dependency: the request of a dependency is an expression

```shell
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
```
  • Loading branch information
jaywcjlove committed Jan 4, 2022
1 parent 4eb13f5 commit adbc409
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/.kktrc.ts
Expand Up @@ -27,6 +27,7 @@ export default (

/** https://github.com/uiwjs/react-code-preview/issues/94 */
conf.module!.exprContextCritical = false;
conf.module!.exprContextRecursive = false;
if (env === 'production') {
conf.optimization = {
...conf.optimization,
Expand Down

0 comments on commit adbc409

Please sign in to comment.