Skip to content

Commit

Permalink
chore: fix kkt config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 28, 2022
1 parent 37f9fc9 commit bd978dd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ export default (conf: Configuration, env: 'development' | 'production', options:
conf = lessModules(conf, env, options);
if (options.bundle) {
conf.output!.library = '@uiw/react-run-web';
conf.externals = ['react'];
conf.externals = {
react: {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react',
},
};
} else {
conf = rawModules(conf, env, { ...options });
conf = scopePluginOptions(conf, env, {
Expand Down

0 comments on commit bd978dd

Please sign in to comment.