From adbc4093363d28b85353f8c70b437fb4f559721a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 4 Jan 2022 11:27:41 +0800 Subject: [PATCH] chore(website): Fix startup service "Critical dependency" warning. https://github.com/uiwjs/react-code-preview/issues/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 ``` --- website/.kktrc.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/website/.kktrc.ts b/website/.kktrc.ts index 8f6bbc5d03..4fcb0dc362 100755 --- a/website/.kktrc.ts +++ b/website/.kktrc.ts @@ -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,