@rspack/plugin-react-refresh
Advanced tools
Comparing version 0.3.4-canary-1d65710-20230913083932 to 0.3.4-canary-250f34b-20230922010620
{ | ||
"name": "@rspack/plugin-react-refresh", | ||
"version": "0.3.4-canary-1d65710-20230913083932", | ||
"version": "0.3.4-canary-250f34b-20230922010620", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "React refresh plugin for rspack", |
@@ -30,7 +30,8 @@ const path = require("path"); | ||
compiler.options.module.rules.push({ | ||
include: runtimePaths, | ||
type: "js" | ||
compiler.options.module.rules.unshift({ | ||
exclude: [/node_modules/i, ...runtimePaths], | ||
include: /\.([cm]js|[jt]sx?|flow)$/i, | ||
use: "builtin:react-refresh-loader" | ||
}); | ||
} | ||
}; |
4694
58
2
3
2