Skip to content

Commit 76d1ea9

Browse files
refactor: update typescript config
1 parent 418f434 commit 76d1ea9

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
22
"compilerOptions": {
33
"allowSyntheticDefaultImports": true,
4-
"noImplicitAny": true,
4+
"strict": true,
55
"module": "esnext",
66
"moduleResolution": "bundler",
77
"target": "esnext",
88
"allowJs": true,
99
"esModuleInterop": true,
1010
"resolveJsonModule": true,
11+
"verbatimModuleSyntax": true,
12+
"erasableSyntaxOnly": true,
1113
"isolatedModules": true,
1214
"rewriteRelativeImportExtensions": true
1315
},
14-
"include": ["src/**/*"],
15-
"exclude": ["node_modules"]
16+
"include": ["./src/**/*"],
17+
"exclude": ["./node_modules"]
1618
}

packages/create-webpack-app/templates/init/default/webpack.config.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import path from "node:path";
44
import { fileURLToPath } from "node:url";<% if (langType === "Typescript") { %>
5-
import { Configuration } from "webpack";<% if (devServer) { %>
5+
import { type Configuration } from "webpack";<% if (devServer) { %>
66
import "webpack-dev-server";<% } %><% } %><% if (htmlWebpackPlugin) { %>
77
import HtmlWebpackPlugin from "html-webpack-plugin";<% } %><% if (extractPlugin !== "No") { %>
88
import MiniCssExtractPlugin from "mini-css-extract-plugin";<% } %><% if (workboxWebpackPlugin) { %>

0 commit comments

Comments
 (0)