Skip to content

Commit 05d9deb

Browse files
committed
docs: correct jest and swc-sdk capability descriptions (#598)
1 parent 7934933 commit 05d9deb

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

packages/jest/README.tmpl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# @swc/plugin-jest
22

3-
`@swc/plugin-jest` is a drop-in replacement for `babel-jest` that uses SWC to transform your code, enabling significantly faster Jest-based testing. It integrates with Jest's transformation pipeline so you can run your test suite with minimal configuration changes.
3+
`@swc/plugin-jest` is an SWC transform that hoists Jest calls such as `jest.mock`, `jest.unmock`, and `jest.enableAutomock` in the same spirit as Jest's Babel hoist behavior.
44

55
${CHANGELOG}

packages/swc-sdk/README.tmpl.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @swc/plugin-swc-sdk
22

3-
`@swc/plugin-swc-sdk` provides build-time transformations from the `@swc/sdk` package. It supports converting static imports annotated with `/*#__DYNAMIC__*/` into dynamic imports, and processes `markAsPure` annotations so the SWC minifier can tree-shake the marked expressions.
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.
44

55
# Usage
66

@@ -63,12 +63,4 @@ export function sync() {
6363
}
6464
```
6565

66-
## `markAsPure`
67-
68-
```js
69-
import { markAsPure } from "@swc/sdk";
70-
71-
markAsPure(() => console.log("This will be removed by the SWC minifier"));
72-
```
73-
7466
${CHANGELOG}

0 commit comments

Comments
 (0)