create-rspack-canary 1.3.9-canary-972c005f-20250507063649 → 1.3.10-canary-39598281-20250512094223
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template-react-js/package.json +2 -2
- package/template-react-js/rspack.config.mjs +3 -3
- package/template-react-ts/package.json +2 -2
- package/template-react-ts/rspack.config.ts +3 -4
- package/template-vanilla-js/rspack.config.mjs +1 -1
- package/template-vanilla-ts/rspack.config.ts +1 -1
- package/template-vue-js/rspack.config.mjs +1 -2
- package/template-vue-ts/rspack.config.ts +1 -2
package/package.json
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@rspack/cli": "workspace:*",
|
|
16
16
|
"@rspack/core": "workspace:*",
|
|
17
|
-
"@rspack/plugin-react-refresh": "^1.4.
|
|
17
|
+
"@rspack/plugin-react-refresh": "^1.4.3",
|
|
18
18
|
"@types/react": "^19.1.3",
|
|
19
19
|
"@types/react-dom": "^19.1.3",
|
|
20
20
|
"react-refresh": "^0.17.0"
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}
|
|
@@ -2,13 +2,13 @@ import { dirname } from "node:path";
|
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
import { defineConfig } from "@rspack/cli";
|
|
4
4
|
import { rspack } from "@rspack/core";
|
|
5
|
-
import
|
|
5
|
+
import { ReactRefreshRspackPlugin } from "@rspack/plugin-react-refresh";
|
|
6
6
|
|
|
7
7
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
8
|
const isDev = process.env.NODE_ENV === "development";
|
|
9
9
|
|
|
10
10
|
// Target browsers, see: https://github.com/browserslist/browserslist
|
|
11
|
-
const targets = ["
|
|
11
|
+
const targets = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
|
|
12
12
|
|
|
13
13
|
export default defineConfig({
|
|
14
14
|
context: __dirname,
|
|
@@ -54,7 +54,7 @@ export default defineConfig({
|
|
|
54
54
|
new rspack.HtmlRspackPlugin({
|
|
55
55
|
template: "./index.html"
|
|
56
56
|
}),
|
|
57
|
-
isDev ? new
|
|
57
|
+
isDev ? new ReactRefreshRspackPlugin() : null
|
|
58
58
|
].filter(Boolean),
|
|
59
59
|
optimization: {
|
|
60
60
|
minimizer: [
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@rspack/cli": "workspace:*",
|
|
16
16
|
"@rspack/core": "workspace:*",
|
|
17
|
-
"@rspack/plugin-react-refresh": "^1.4.
|
|
17
|
+
"@rspack/plugin-react-refresh": "^1.4.3",
|
|
18
18
|
"@types/react": "^19.1.3",
|
|
19
19
|
"@types/react-dom": "^19.1.3",
|
|
20
20
|
"react-refresh": "^0.17.0",
|
|
21
21
|
"ts-node": "^10.9.2",
|
|
22
22
|
"typescript": "^5.8.3"
|
|
23
23
|
}
|
|
24
|
-
}
|
|
24
|
+
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { defineConfig } from "@rspack/cli";
|
|
2
2
|
import { rspack } from "@rspack/core";
|
|
3
|
-
import
|
|
3
|
+
import { ReactRefreshRspackPlugin } from "@rspack/plugin-react-refresh";
|
|
4
4
|
|
|
5
5
|
const isDev = process.env.NODE_ENV === "development";
|
|
6
6
|
|
|
7
7
|
// Target browsers, see: https://github.com/browserslist/browserslist
|
|
8
|
-
const targets = ["
|
|
8
|
+
const targets = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
|
|
9
9
|
|
|
10
10
|
export default defineConfig({
|
|
11
|
-
context: __dirname,
|
|
12
11
|
entry: {
|
|
13
12
|
main: "./src/main.tsx"
|
|
14
13
|
},
|
|
@@ -51,7 +50,7 @@ export default defineConfig({
|
|
|
51
50
|
new rspack.HtmlRspackPlugin({
|
|
52
51
|
template: "./index.html"
|
|
53
52
|
}),
|
|
54
|
-
isDev ? new
|
|
53
|
+
isDev ? new ReactRefreshRspackPlugin() : null
|
|
55
54
|
].filter(Boolean),
|
|
56
55
|
optimization: {
|
|
57
56
|
minimizer: [
|
|
@@ -2,7 +2,7 @@ import { defineConfig } from "@rspack/cli";
|
|
|
2
2
|
import { rspack } from "@rspack/core";
|
|
3
3
|
|
|
4
4
|
// Target browsers, see: https://github.com/browserslist/browserslist
|
|
5
|
-
const targets = ["
|
|
5
|
+
const targets = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
entry: {
|
|
@@ -2,7 +2,7 @@ import { defineConfig } from "@rspack/cli";
|
|
|
2
2
|
import { rspack } from "@rspack/core";
|
|
3
3
|
|
|
4
4
|
// Target browsers, see: https://github.com/browserslist/browserslist
|
|
5
|
-
const targets = ["
|
|
5
|
+
const targets = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
entry: {
|
|
@@ -7,10 +7,9 @@ import { VueLoaderPlugin } from "vue-loader";
|
|
|
7
7
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
8
|
|
|
9
9
|
// Target browsers, see: https://github.com/browserslist/browserslist
|
|
10
|
-
const targets = ["
|
|
10
|
+
const targets = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
|
|
11
11
|
|
|
12
12
|
export default defineConfig({
|
|
13
|
-
context: __dirname,
|
|
14
13
|
entry: {
|
|
15
14
|
main: "./src/main.js"
|
|
16
15
|
},
|
|
@@ -3,10 +3,9 @@ import { type RspackPluginFunction, rspack } from "@rspack/core";
|
|
|
3
3
|
import { VueLoaderPlugin } from "vue-loader";
|
|
4
4
|
|
|
5
5
|
// Target browsers, see: https://github.com/browserslist/browserslist
|
|
6
|
-
const targets = ["
|
|
6
|
+
const targets = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
|
|
7
7
|
|
|
8
8
|
export default defineConfig({
|
|
9
|
-
context: __dirname,
|
|
10
9
|
entry: {
|
|
11
10
|
main: "./src/main.ts"
|
|
12
11
|
},
|