File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
"compilerOptions" : {
3
3
"outDir" : " ./dist/" ,
4
4
"noImplicitAny" : true ,
5
- "module" : " CommonJS " ,
5
+ "module" : " esnext " ,
6
6
"target" : " ES2022" ,
7
7
"allowJs" : false ,
8
8
"esModuleInterop" : true ,
12
12
"strict" : true ,
13
13
"forceConsistentCasingInFileNames" : true ,
14
14
"skipLibCheck" : true ,
15
-
15
+ "allowImportingTsExtensions" : true ,
16
+ "rewriteRelativeImportExtensions" : true ,
17
+ "verbatimModuleSyntax" : true ,
16
18
"alwaysStrict" : true ,
17
19
"exactOptionalPropertyTypes" : true ,
18
20
"noFallthroughCasesInSwitch" : true ,
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ import TerserPlugin from 'terser-webpack-plugin'
5
5
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin'
6
6
import CopyPlugin from 'copy-webpack-plugin'
7
7
8
+ import { fileURLToPath } from 'url'
9
+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
10
+
8
11
const configBuild = {
9
12
entry : {
10
13
main : './src/index.ts' ,
You can’t perform that action at this time.
0 commit comments