@swc/plugin-swc-sdk 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 +12 -6
- package/README.tmpl.md +2 -8
- package/package.json +1 -1
- package/swc_plugin_swc_sdk.wasm +0 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @swc/plugin-swc-sdk
|
|
2
2
|
|
|
3
|
+
`@swc/plugin-swc-sdk` provides build-time transformations for the `@swc/sdk` package. It supports converting static imports annotated with `/*#__DYNAMIC__*/` into dynamic imports, and applies configured SDK feature-flag transforms.
|
|
4
|
+
|
|
3
5
|
# Usage
|
|
4
6
|
|
|
5
7
|
.swcrc:
|
|
@@ -61,15 +63,19 @@ export function sync() {
|
|
|
61
63
|
}
|
|
62
64
|
```
|
|
63
65
|
|
|
64
|
-
|
|
66
|
+
# @swc/plugin-swc-sdk
|
|
65
67
|
|
|
66
|
-
|
|
67
|
-
import { markAsPure } from "@swc/sdk";
|
|
68
|
+
## 12.9.0
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
```
|
|
70
|
+
### Minor Changes
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
- d2f9cfa: build: Update swc_core to v65.0.0
|
|
73
|
+
|
|
74
|
+
## 12.8.0
|
|
75
|
+
|
|
76
|
+
### Minor Changes
|
|
77
|
+
|
|
78
|
+
- a0fb975: Update swc_core to v61.0.1
|
|
73
79
|
|
|
74
80
|
## 12.7.0
|
|
75
81
|
|
package/README.tmpl.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @swc/plugin-swc-sdk
|
|
2
2
|
|
|
3
|
+
`@swc/plugin-swc-sdk` provides build-time transformations for the `@swc/sdk` package. It supports converting static imports annotated with `/*#__DYNAMIC__*/` into dynamic imports, and applies configured SDK feature-flag transforms.
|
|
4
|
+
|
|
3
5
|
# Usage
|
|
4
6
|
|
|
5
7
|
.swcrc:
|
|
@@ -61,12 +63,4 @@ export function sync() {
|
|
|
61
63
|
}
|
|
62
64
|
```
|
|
63
65
|
|
|
64
|
-
## `markAsPure`
|
|
65
|
-
|
|
66
|
-
```js
|
|
67
|
-
import { markAsPure } from "@swc/sdk";
|
|
68
|
-
|
|
69
|
-
markAsPure(() => console.log("This will be removed by the SWC minifier"));
|
|
70
|
-
```
|
|
71
|
-
|
|
72
66
|
${CHANGELOG}
|
package/package.json
CHANGED
package/swc_plugin_swc_sdk.wasm
CHANGED
|
Binary file
|