create-rspack-canary 1.3.10-canary-4a96390f-20250514074254 → 1.3.11-canary-c7684ae9-20250514100056

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rspack-canary",
3
- "version": "1.3.10-canary-4a96390f-20250514074254",
3
+ "version": "1.3.11-canary-c7684ae9-20250514100056",
4
4
  "homepage": "https://rspack.dev",
5
5
  "bugs": "https://github.com/web-infra-dev/rspack/issues",
6
6
  "repository": {
@@ -20,10 +20,10 @@
20
20
  "bin.js"
21
21
  ],
22
22
  "dependencies": {
23
- "create-rstack": "1.4.0"
23
+ "create-rstack": "1.4.5"
24
24
  },
25
25
  "devDependencies": {
26
- "@rslib/core": "0.6.8",
26
+ "@rslib/core": "0.7.0",
27
27
  "typescript": "^5.8.3"
28
28
  },
29
29
  "publishConfig": {
@@ -14,9 +14,9 @@
14
14
  "devDependencies": {
15
15
  "@rspack/cli": "workspace:*",
16
16
  "@rspack/core": "workspace:*",
17
- "@rspack/plugin-react-refresh": "^1.4.1",
18
- "@types/react": "^19.1.3",
19
- "@types/react-dom": "^19.1.3",
17
+ "@rspack/plugin-react-refresh": "^1.4.3",
18
+ "@types/react": "^19.1.4",
19
+ "@types/react-dom": "^19.1.5",
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 RefreshPlugin from "@rspack/plugin-react-refresh";
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 = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
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 RefreshPlugin() : null
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.1",
18
- "@types/react": "^19.1.3",
19
- "@types/react-dom": "^19.1.3",
17
+ "@rspack/plugin-react-refresh": "^1.4.3",
18
+ "@types/react": "^19.1.4",
19
+ "@types/react-dom": "^19.1.5",
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 * as RefreshPlugin from "@rspack/plugin-react-refresh";
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 = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
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 RefreshPlugin() : null
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 = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
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 = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
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 = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
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 = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
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
  },