create-rspack-canary 1.3.10-canary-39598281-20250512094223 → 1.3.10-canary-4a96390f-20250514074254

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-39598281-20250512094223",
3
+ "version": "1.3.10-canary-4a96390f-20250514074254",
4
4
  "homepage": "https://rspack.dev",
5
5
  "bugs": "https://github.com/web-infra-dev/rspack/issues",
6
6
  "repository": {
@@ -14,9 +14,9 @@
14
14
  "devDependencies": {
15
15
  "@rspack/cli": "workspace:*",
16
16
  "@rspack/core": "workspace:*",
17
- "@rspack/plugin-react-refresh": "^1.4.3",
17
+ "@rspack/plugin-react-refresh": "^1.4.1",
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 { ReactRefreshRspackPlugin } from "@rspack/plugin-react-refresh";
5
+ import RefreshPlugin 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 = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
11
+ const targets = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
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 ReactRefreshRspackPlugin() : null
57
+ isDev ? new RefreshPlugin() : 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.3",
17
+ "@rspack/plugin-react-refresh": "^1.4.1",
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,13 +1,14 @@
1
1
  import { defineConfig } from "@rspack/cli";
2
2
  import { rspack } from "@rspack/core";
3
- import { ReactRefreshRspackPlugin } from "@rspack/plugin-react-refresh";
3
+ import * as RefreshPlugin 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 = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
8
+ const targets = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
9
9
 
10
10
  export default defineConfig({
11
+ context: __dirname,
11
12
  entry: {
12
13
  main: "./src/main.tsx"
13
14
  },
@@ -50,7 +51,7 @@ export default defineConfig({
50
51
  new rspack.HtmlRspackPlugin({
51
52
  template: "./index.html"
52
53
  }),
53
- isDev ? new ReactRefreshRspackPlugin() : null
54
+ isDev ? new RefreshPlugin() : null
54
55
  ].filter(Boolean),
55
56
  optimization: {
56
57
  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 = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
5
+ const targets = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
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 = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
5
+ const targets = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
6
6
 
7
7
  export default defineConfig({
8
8
  entry: {
@@ -7,9 +7,10 @@ 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 = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
10
+ const targets = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
11
11
 
12
12
  export default defineConfig({
13
+ context: __dirname,
13
14
  entry: {
14
15
  main: "./src/main.js"
15
16
  },
@@ -3,9 +3,10 @@ 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 = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
6
+ const targets = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
7
7
 
8
8
  export default defineConfig({
9
+ context: __dirname,
9
10
  entry: {
10
11
  main: "./src/main.ts"
11
12
  },