@swc/plugin-swc-magic 12.7.0 → 12.9.0
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 +12 -0
- package/README.md +14 -0
- package/README.tmpl.md +2 -0
- package/package.json +1 -1
- package/swc_plugin_swc_magic.wasm +0 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @swc/plugin-swc-magic
|
|
2
2
|
|
|
3
|
+
`@swc/plugin-swc-magic` processes magic annotations from the `@swc/magic` package, such as `markAsPure`, which annotates expressions so the SWC minifier can eliminate them as dead code during tree-shaking.
|
|
4
|
+
|
|
3
5
|
## Usage
|
|
4
6
|
|
|
5
7
|
.swcrc:
|
|
@@ -24,6 +26,18 @@ markAsPure(() => console.log("This will be removed by the SWC minifier"));
|
|
|
24
26
|
|
|
25
27
|
# @swc/plugin-swc-magic
|
|
26
28
|
|
|
29
|
+
## 12.9.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- d2f9cfa: build: Update swc_core to v65.0.0
|
|
34
|
+
|
|
35
|
+
## 12.8.0
|
|
36
|
+
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- a0fb975: Update swc_core to v61.0.1
|
|
40
|
+
|
|
27
41
|
## 12.7.0
|
|
28
42
|
|
|
29
43
|
### Minor Changes
|
package/README.tmpl.md
CHANGED
package/package.json
CHANGED
|
Binary file
|