@swc/plugin-swc-magic 1.5.113 → 1.5.115

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,17 @@
1
1
  # @swc/plugin-swc-magic
2
2
 
3
+ ## 1.5.115
4
+
5
+ ### Patch Changes
6
+
7
+ - 8bd92c7: swc_core 0.90.x
8
+
9
+ ## 1.5.114
10
+
11
+ ### Patch Changes
12
+
13
+ - 4ef0b7f: Add changelog to the readme
14
+
3
15
  ## 1.5.113
4
16
 
5
17
  ### Patch Changes
package/Cargo.toml CHANGED
@@ -5,14 +5,14 @@ edition = "2021"
5
5
  license = "Apache-2.0"
6
6
  name = "swc_plugin_swc_magic"
7
7
  publish = false
8
- version = "0.6.0"
8
+ version = "0.7.3"
9
9
 
10
10
  [lib]
11
11
  crate-type = ["cdylib", "rlib"]
12
12
 
13
13
  [dependencies]
14
14
  serde_json = "1.0.107"
15
- swc_core = { version = "0.88.0", features = ["ecma_plugin_transform"] }
15
+ swc_core = { version = "0.90.0", features = ["ecma_plugin_transform"] }
16
16
 
17
17
 
18
18
  swc_magic = { path = "./transform" }
package/README.md CHANGED
@@ -14,8 +14,36 @@
14
14
  }
15
15
  ```
16
16
 
17
+ ### `markAsPure`
18
+
17
19
  ```js
18
20
  import { markAsPure } from "@swc/magic";
19
21
 
20
22
  markAsPure(() => console.log("This will be removed by the SWC minifier"));
21
23
  ```
24
+
25
+ # @swc/plugin-swc-magic
26
+
27
+ ## 1.5.115
28
+
29
+ ### Patch Changes
30
+
31
+ - 8bd92c7: swc_core 0.90.x
32
+
33
+ ## 1.5.114
34
+
35
+ ### Patch Changes
36
+
37
+ - 4ef0b7f: Add changelog to the readme
38
+
39
+ ## 1.5.113
40
+
41
+ ### Patch Changes
42
+
43
+ - 4e72680: swc_core@0.88.0
44
+
45
+ ## 1.5.112
46
+
47
+ ### Patch Changes
48
+
49
+ - 16bb4d8: swc_core@0.82.x
package/README.md.tmpl ADDED
@@ -0,0 +1,25 @@
1
+ # @swc/plugin-swc-magic
2
+
3
+ ## Usage
4
+
5
+ .swcrc:
6
+
7
+ ```json
8
+ {
9
+ "jsc": {
10
+ "experimental": {
11
+ "plugins": ["@swc/plugin-swc-magic"]
12
+ }
13
+ }
14
+ }
15
+ ```
16
+
17
+ ### `markAsPure`
18
+
19
+ ```js
20
+ import { markAsPure } from "@swc/magic";
21
+
22
+ markAsPure(() => console.log("This will be removed by the SWC minifier"));
23
+ ```
24
+
25
+ ${CHANGELOG}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/plugin-swc-magic",
3
- "version": "1.5.113",
3
+ "version": "1.5.115",
4
4
  "description": "SWC plugin for swc-magic",
5
5
  "main": "swc_plugin_swc_magic.wasm",
6
6
  "homepage": "https://swc.rs",
Binary file