File tree 5 files changed +97
-1377
lines changed
5 files changed +97
-1377
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ ignores:
4
4
- ' @swc/*'
5
5
- ' @size-limit/*'
6
6
- ' @types/*'
7
+ - clean-webpack-plugin
7
8
- jest-*
8
9
- param-case
9
10
- pascal-case
10
11
- semantic-release
12
+ - source-map-loader
11
13
- ts-jest
12
14
- ts-loader
13
15
- webpack-*
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 74
74
"unpartial" : " ^0.7.3"
75
75
},
76
76
"devDependencies" : {
77
- "@babel/plugin-transform-modules-commonjs" : " ^7.18.2" ,
78
- "@babel/preset-env" : " ^7.18.2" ,
79
- "@babel/preset-typescript" : " ^7.17.12" ,
80
77
"@commitlint/cli" : " ^17.0.0" ,
81
78
"@commitlint/config-conventional" : " ^17.0.0" ,
82
79
"@semantic-release/changelog" : " ^6.0.1" ,
89
86
"@types/jest" : " ^27.5.1" ,
90
87
"@typescript-eslint/eslint-plugin" : " ^5.20.0" ,
91
88
"@typescript-eslint/parser" : " ^5.23.0" ,
92
- "babel-loader" : " ^8.2.5" ,
93
89
"clean-webpack-plugin" : " ^4.0.0" ,
94
90
"depcheck" : " ^1.4.3" ,
95
91
"eslint" : " 8.16.0" ,
Original file line number Diff line number Diff line change @@ -20,22 +20,10 @@ module.exports = {
20
20
loader : 'ts-loader' ,
21
21
test : / \. t s $ / ,
22
22
options : {
23
- configFile : 'tsconfig.cjs .json' ,
24
- transpileOnly : true
23
+ configFile : 'tsconfig.esm .json' ,
24
+ // transpileOnly: true
25
25
}
26
26
} ,
27
- // {
28
- // loader: 'babel-loader',
29
- // test: /\.js$/,
30
- // options:
31
- // {
32
- // presets: [
33
- // '@babel/preset-env',
34
- // '@babel/preset-typescript'
35
- // ],
36
- // plugins: ['@babel/plugin-transform-modules-commonjs']
37
- // }
38
- // },
39
27
{
40
28
test : / \. j s $ / ,
41
29
enforce : 'pre' ,
@@ -46,9 +34,6 @@ module.exports = {
46
34
optimization : {
47
35
minimize : true ,
48
36
} ,
49
- // plugins: [
50
- // new BundleAnalyzerPlugin()
51
- // ],
52
37
output : {
53
38
path : path . resolve ( 'dist' ) ,
54
39
filename : `${ filename } .es5.js` ,
@@ -57,6 +42,7 @@ module.exports = {
57
42
plugins : [
58
43
new CleanWebpackPlugin ( ) ,
59
44
new NormalModuleReplacementPlugin ( / .j s $ / , ( resource ) => {
45
+ if ( / n o d e _ m o d u l e s / . test ( resource . context ) ) return
60
46
resource . request = resource . request . replace ( / .j s $ / , '' )
61
47
} )
62
48
] ,
You can’t perform that action at this time.
0 commit comments