Skip to content

Commit

Permalink
fix: Fix kkt config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 27, 2022
1 parent c4e3309 commit 93c79ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import scopePluginOptions from '@kkt/scope-plugin-options';
import pkg from './package.json';

export default (conf: Configuration, env: 'development' | 'production', options: LoaderConfOptions) => {
conf = rawModules(conf, env, { ...options });
conf = lessModules(conf, env, options);
if (options.bundle) {
conf.output!.library = '@uiw/react-heat-map';
conf.externals = {
Expand All @@ -17,13 +17,13 @@ export default (conf: Configuration, env: 'development' | 'production', options:
commonjs: 'react',
amd: 'react',
},
}
};
} else {
conf = scopePluginOptions(conf, env, {
...options,
allowedFiles: [path.resolve(process.cwd(), 'README.md')],
});
conf = lessModules(conf, env, options);
conf = rawModules(conf, env, { ...options });
// Get the project version.
conf.plugins!.push(
new webpack.DefinePlugin({
Expand Down

0 comments on commit 93c79ee

Please sign in to comment.