@@ -19,18 +19,14 @@ const env = {
19
19
const browserslistConfig = PRODUCTION
20
20
? {
21
21
targets : [ 'chrome >= 79' , 'edge >= 88' , 'firefox >= 85' , 'safari >= 13' ] ,
22
- entry : 'usage ' ,
22
+ entry : 'entry ' ,
23
23
coreJs : '3.38' ,
24
- loose : true ,
25
24
shippedProposals : true ,
25
+ // loose: true, // Breaks #private class fields
26
26
// forceAllTransforms: true,
27
27
}
28
28
: {
29
29
targets : [ 'last 1 chrome version' , 'last 1 firefox version' , 'last 1 safari version' ] ,
30
- entry : 'usage' ,
31
- coreJs : '3.38' ,
32
- loose : true ,
33
- shippedProposals : true ,
34
30
} ;
35
31
36
32
function buildConfiguration ( ) {
@@ -64,8 +60,9 @@ function buildConfiguration() {
64
60
rules : [
65
61
{
66
62
test : / \. ( j | t ) s $ / ,
67
- exclude : [ / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] / ] ,
68
63
loader : 'builtin:swc-loader' ,
64
+ // exclude: [/[\\/]node_modules[\\/]/],
65
+ include : [ path . resolve ( __dirname , '.' ) ] ,
69
66
options : {
70
67
jsc : {
71
68
externalHelpers : true ,
@@ -78,7 +75,8 @@ function buildConfiguration() {
78
75
{
79
76
test : / \. ( j | t ) s x $ / ,
80
77
loader : 'builtin:swc-loader' ,
81
- exclude : [ / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] / ] ,
78
+ // exclude: [/[\\/]node_modules[\\/]/],
79
+ include : [ path . resolve ( __dirname , '.' ) ] ,
82
80
options : {
83
81
jsc : {
84
82
externalHelpers : true ,
@@ -129,6 +127,9 @@ function buildConfiguration() {
129
127
}
130
128
}
131
129
} else {
130
+ //@ts -ignore
131
+ config . module . rules [ 0 ] . include . push ( path . dirname ( require . resolve ( 'minimatch' ) ) ) ;
132
+
132
133
if ( ENABLE_PROFILING ) {
133
134
if ( ! config . resolve ) {
134
135
config . resolve = { } ;
0 commit comments