File tree Expand file tree Collapse file tree
packages/create-webpack-app/templates/init/default Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 22
33import path from "node:path";
44import { fileURLToPath } from "node:url";<% if (langType === "Typescript") { %>
5- import { Configuration } from "webpack";<% if (devServer) { %>
5+ import { type Configuration } from "webpack";<% if (devServer) { %>
66import " webpack-dev-server" ;<% } %><% } %><% if (htmlWebpackPlugin) { %>
77import HtmlWebpackPlugin from " html-webpack-plugin" ;<% } %><% if (extractPlugin !== "No") { %>
88import MiniCssExtractPlugin from " mini-css-extract-plugin" ;<% } %><% if (workboxWebpackPlugin) { %>
You can’t perform that action at this time.
0 commit comments