create-rspack-canary 1.6.0-canary-c1ffd5c5-20251016085846 → 1.6.0-canary-2ccce257-20251016173648
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/rspack.config.mjs +2 -0
- package/template-react-ts/rspack.config.ts +2 -2
- package/template-vanilla-js/rspack.config.mjs +3 -1
- package/template-vanilla-ts/rspack.config.ts +4 -4
- package/template-vue-js/rspack.config.mjs +2 -4
- package/template-vue-ts/rspack.config.ts +6 -2
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @ts-check
|
|
1
2
|
import { dirname } from "node:path";
|
|
2
3
|
import { fileURLToPath } from "node:url";
|
|
3
4
|
import { defineConfig } from "@rspack/cli";
|
|
@@ -29,6 +30,7 @@ export default defineConfig({
|
|
|
29
30
|
use: [
|
|
30
31
|
{
|
|
31
32
|
loader: "builtin:swc-loader",
|
|
33
|
+
/** @type {import('@rspack/core').SwcLoaderOptions} */
|
|
32
34
|
options: {
|
|
33
35
|
jsc: {
|
|
34
36
|
parser: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineConfig } from "@rspack/cli";
|
|
2
|
-
import { rspack } from "@rspack/core";
|
|
2
|
+
import { rspack, type SwcLoaderOptions } from "@rspack/core";
|
|
3
3
|
import { ReactRefreshRspackPlugin } from "@rspack/plugin-react-refresh";
|
|
4
4
|
|
|
5
5
|
const isDev = process.env.NODE_ENV === "development";
|
|
@@ -40,7 +40,7 @@ export default defineConfig({
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
env: { targets }
|
|
43
|
-
}
|
|
43
|
+
} satisfies SwcLoaderOptions
|
|
44
44
|
}
|
|
45
45
|
]
|
|
46
46
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
// @ts-check
|
|
1
2
|
import { defineConfig } from "@rspack/cli";
|
|
2
3
|
import { rspack } from "@rspack/core";
|
|
3
4
|
|
|
4
5
|
// Target browsers, see: https://github.com/browserslist/browserslist
|
|
5
|
-
const targets = ["last 2 versions", "> 0.2%",
|
|
6
|
+
const targets = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
|
|
6
7
|
|
|
7
8
|
export default defineConfig({
|
|
8
9
|
entry: {
|
|
@@ -19,6 +20,7 @@ export default defineConfig({
|
|
|
19
20
|
use: [
|
|
20
21
|
{
|
|
21
22
|
loader: "builtin:swc-loader",
|
|
23
|
+
/** @type {import('@rspack/core').SwcLoaderOptions} */
|
|
22
24
|
options: {
|
|
23
25
|
jsc: {
|
|
24
26
|
parser: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineConfig } from "@rspack/cli";
|
|
2
|
-
import { rspack } from "@rspack/core";
|
|
2
|
+
import { rspack, type SwcLoaderOptions } from "@rspack/core";
|
|
3
3
|
|
|
4
4
|
// Target browsers, see: https://github.com/browserslist/browserslist
|
|
5
|
-
const targets = ["last 2 versions", "> 0.2%",
|
|
5
|
+
const targets = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
entry: {
|
|
@@ -29,7 +29,7 @@ export default defineConfig({
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
env: { targets }
|
|
32
|
-
}
|
|
32
|
+
} satisfies SwcLoaderOptions
|
|
33
33
|
}
|
|
34
34
|
]
|
|
35
35
|
},
|
|
@@ -45,7 +45,7 @@ export default defineConfig({
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
env: { targets }
|
|
48
|
-
}
|
|
48
|
+
} satisfies SwcLoaderOptions
|
|
49
49
|
}
|
|
50
50
|
]
|
|
51
51
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { fileURLToPath } from "node:url";
|
|
1
|
+
// @ts-check
|
|
3
2
|
import { defineConfig } from "@rspack/cli";
|
|
4
3
|
import { rspack } from "@rspack/core";
|
|
5
4
|
import { VueLoaderPlugin } from "vue-loader";
|
|
6
5
|
|
|
7
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
-
|
|
9
6
|
// Target browsers, see: https://github.com/browserslist/browserslist
|
|
10
7
|
const targets = ["last 2 versions", "> 0.2%", "not dead", "Firefox ESR"];
|
|
11
8
|
|
|
@@ -30,6 +27,7 @@ export default defineConfig({
|
|
|
30
27
|
use: [
|
|
31
28
|
{
|
|
32
29
|
loader: "builtin:swc-loader",
|
|
30
|
+
/** @type {import('@rspack/core').SwcLoaderOptions} */
|
|
33
31
|
options: {
|
|
34
32
|
jsc: {
|
|
35
33
|
parser: {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { defineConfig } from "@rspack/cli";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
type RspackPluginFunction,
|
|
4
|
+
rspack,
|
|
5
|
+
type SwcLoaderOptions
|
|
6
|
+
} from "@rspack/core";
|
|
3
7
|
import { VueLoaderPlugin } from "vue-loader";
|
|
4
8
|
|
|
5
9
|
// Target browsers, see: https://github.com/browserslist/browserslist
|
|
@@ -33,7 +37,7 @@ export default defineConfig({
|
|
|
33
37
|
}
|
|
34
38
|
},
|
|
35
39
|
env: { targets }
|
|
36
|
-
}
|
|
40
|
+
} satisfies SwcLoaderOptions
|
|
37
41
|
}
|
|
38
42
|
]
|
|
39
43
|
},
|