type: fix type error.

This commit is contained in:
jaywcjlove
2024-08-05 00:44:13 +08:00
parent 8b4194f5ae
commit d85368cb4f
6 changed files with 10 additions and 5 deletions

View File

@@ -20,6 +20,8 @@ export default (conf: Configuration, env: 'development' | 'production', options:
}),
);
/** https://github.com/kktjs/kkt/issues/446 */
conf.ignoreWarnings = [{ module: /node_modules[\\/]parse5[\\/]/ }];
conf.module!.exprContextCritical = false;
if (env === 'production') {
conf.output = { ...conf.output, publicPath: './' };