Skip to content

Commit 4d69896

Browse files
committed
chore: Modify kkt configs.
1 parent 31013f6 commit 4d69896

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.kktrc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const loaderOneOf = [
1515

1616
export default (conf: webpack.Configuration, opts: OptionConf, webpack: Webpack) => {
1717
const pkg = require(path.resolve(process.cwd(), 'package.json'));
18-
conf.module.rules.map((item) => {
18+
conf.module!.rules.map((item) => {
1919
if (item.oneOf) {
2020
item.oneOf.unshift({
2121
test: /\.md$/,
@@ -25,7 +25,7 @@ export default (conf: webpack.Configuration, opts: OptionConf, webpack: Webpack)
2525
return item;
2626
});
2727
// 获取 React CodeMirror 版本
28-
conf.plugins.push(
28+
conf.plugins!.push(
2929
new webpack.DefinePlugin({
3030
VERSION: JSON.stringify(pkg.version),
3131
})

0 commit comments

Comments
 (0)