create-rspack 0.0.18 → 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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # create-rspack
2
2
 
3
+ ## 0.0.19
4
+
5
+ ### Patch Changes
6
+
7
+ - b67418968: chore: 🤖 use module path instead of module id in diagnositc
8
+ - 962f8a251: fix: should create different module with different module rule
9
+ - 766c94042: fix rust test
10
+ - c1f19b817: align webpack config optimization.sideEffects
11
+
3
12
  ## 0.0.18
4
13
 
5
14
  ### Patch Changes
package/LICENSE CHANGED
@@ -1,6 +1,7 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022-present Rspack Authors
3
+ Copyright (c) 2022-present Bytedance, Inc. and its affiliates.
4
+
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal
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,19 +1,16 @@
1
1
  {
2
2
  "name": "create-rspack",
3
- "version": "0.0.18",
4
- "description": "",
3
+ "version": "0.0.20",
4
+ "license": "Create a new rspack project",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "create-rspack": "index.js"
8
8
  },
9
- "keywords": [],
10
- "author": "",
11
- "license": "MIT",
9
+ "homepage": "https://rspack.org",
10
+ "bugs": "https://github.com/modern-js-dev/rspack/issues",
11
+ "repository": "modern-js-dev/rspack",
12
12
  "dependencies": {
13
13
  "yargs": "17.6.2",
14
14
  "prompts": "2.4.2"
15
- },
16
- "scripts": {
17
- "test": "echo \"Error: no test specified\" && exit 1"
18
15
  }
19
16
  }
@@ -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
  };