Skip to content

Commit

Permalink
chore(react-component-tsx): Update kkt dependency to v7
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 8, 2022
1 parent 3a87142 commit 8023b9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions example/react-component-tsx/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import rawModules from '@kkt/raw-modules';
import scopePluginOptions from '@kkt/scope-plugin-options';
import pkg from './package.json';

export default (conf: Configuration, env: string, options: LoaderConfOptions) => {
export default (conf: Configuration, env: 'development' | 'production', options: LoaderConfOptions) => {
conf = rawModules(conf, env, { ...options });
conf = scopePluginOptions(conf, env, {
...options,
Expand All @@ -20,7 +20,9 @@ export default (conf: Configuration, env: string, options: LoaderConfOptions) =>
VERSION: JSON.stringify(pkg.version),
}),
);
conf.output = { ...conf.output, publicPath: './' };
if (env === 'production') {
conf.output = { ...conf.output, publicPath: './' };
}
return conf;
};

Expand Down
8 changes: 4 additions & 4 deletions example/react-component-tsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
},
"devDependencies": {
"@babel/runtime": "7.16.5",
"@kkt/less-modules": "6.11.0",
"@kkt/raw-modules": "6.11.0",
"@kkt/scope-plugin-options": "6.11.0",
"@kkt/less-modules": "7.0.5",
"@kkt/raw-modules": "7.0.5",
"@kkt/scope-plugin-options": "7.0.5",
"@tsbb/babel-preset-tsbb": "1.14.2",
"@types/react": "17.0.37",
"@types/react-dom": "17.0.11",
"compile-less-cli": "1.8.9",
"husky": "7.0.4",
"kkt": "6.11.0",
"kkt": "7.0.5",
"lint-staged": "12.1.2",
"prettier": "2.5.1",
"react": "17.0.2",
Expand Down

0 comments on commit 8023b9a

Please sign in to comment.