create-rspack 0.0.19 → 0.0.20

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/README.md ADDED
@@ -0,0 +1,16 @@
1
+ <picture>
2
+ <source media="(prefers-color-scheme: dark)" srcset="https://lf3-static.bytednsdoc.com/obj/eden-cn/rjhwzy/ljhwZthlaukjlkulzlp/rspack-banner-1610-dark.png">
3
+ <img alt="Rspack Banner" src="https://lf3-static.bytednsdoc.com/obj/eden-cn/rjhwzy/ljhwZthlaukjlkulzlp/rspack-banner-1610.png">
4
+ </picture>
5
+
6
+ # create-rspack
7
+
8
+ Create a new rspack project.
9
+
10
+ ## Documentation
11
+
12
+ See [https://rspack.org](https://rspack.org) for details.
13
+
14
+ ## License
15
+
16
+ Rspack is [MIT licensed](https://github.com/modern-js-dev/rspack/blob/main/LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rspack",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "license": "Create a new rspack project",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,5 +1,3 @@
1
- const env = process.env.NODE_ENV || "development";
2
- const isDev = env === "development";
3
1
  /**
4
2
  * @type {import('@rspack/cli').Configuration}
5
3
  */
@@ -13,13 +11,14 @@ module.exports = {
13
11
  {
14
12
  template: "./index.html"
15
13
  }
16
- ],
17
- define: {
18
- "process.env.NODE_ENV": JSON.stringify(env)
19
- },
20
- react: {
21
- development: isDev,
22
- refresh: isDev
23
- }
14
+ ]
15
+ },
16
+ module: {
17
+ rules: [
18
+ {
19
+ test: /\.svg$/,
20
+ type: "asset"
21
+ }
22
+ ]
24
23
  }
25
24
  };