From 5d54aebd505b17312bff24fa4357b45860dd9365 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 19 Oct 2023 14:49:03 +0800 Subject: [PATCH] fix: fix bundle config error. --- core/.kktrc.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/.kktrc.ts b/core/.kktrc.ts index 50c5a8a1..b234d8d3 100644 --- a/core/.kktrc.ts +++ b/core/.kktrc.ts @@ -12,6 +12,12 @@ export default (conf: WebpackConfiguration, env: 'development' | 'production', o commonjs: 'react', amd: 'react', }, + 'react-dom': { + root: 'ReactDOM', + commonjs2: 'react-dom', + commonjs: 'react-dom', + amd: 'react-dom', + }, }; } return conf;