Skip to content

Commit 4b5b53e

Browse files
committed
unify exclude regexes
1 parent a256494 commit 4b5b53e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rspack.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default {
113113
rules: [
114114
{
115115
test: /\.vue$/i,
116-
exclude: /node_modules/,
116+
exclude: /[\\/]node_modules[\\/]/,
117117
loader: 'vue-loader',
118118
options: {
119119
compilerOptions: {
@@ -124,7 +124,7 @@ export default {
124124
},
125125
{
126126
test: /\.(j|t)s$/i,
127-
exclude: [/[\\/]node_modules[\\/]/],
127+
exclude: /[\\/]node_modules[\\/]/,
128128
loader: 'builtin:swc-loader',
129129
options: {
130130
jsc: {

0 commit comments

Comments
 (0)