mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 21:54:36 +03:00
doc(plugin): Fix typo (#3547)
This commit is contained in:
parent
b5a5f2b624
commit
3fc16cdc1c
@ -1,6 +1,6 @@
|
||||
# SWC Plugin
|
||||
|
||||
This crate provides necessary types and macros for creating a custom plugin for SWC (https://swc.rs/), which are WebAssembly modules that may be used to modify behavior of SWC. Currently only `trasnform` (https://swc.rs/docs/usage/core#transform) is supported.
|
||||
This crate provides necessary types and macros for creating a custom plugin for SWC (https://swc.rs/), which are WebAssembly modules that may be used to modify behavior of SWC. Currently only `transform` (https://swc.rs/docs/usage/core#transform) is supported.
|
||||
|
||||
**Disclaimer: currently SWC plugin support is experimental, there may be possible breaking changes or unexpected behaviors. Please provide issues, feedbacks to https://github.com/swc-project/swc/discussions .**
|
||||
|
||||
@ -21,4 +21,4 @@ When create a new project cli require to specify target type between `wasm32-was
|
||||
|
||||
Generated project will contain a fn with macro `#[plugin_transform]` which internally does necessary interop for communication between host to the plugin.
|
||||
|
||||
There are few references like SWC's [jest transform](https://github.com/swc-project/swc/blob/90d080c16b41b73f34151c1f5ecbcbf0b5d8e236/crates/swc_ecma_ext_transforms/src/jest.rs) for writing actual `VisitMut`.
|
||||
There are few references like SWC's [jest transform](https://github.com/swc-project/swc/blob/90d080c16b41b73f34151c1f5ecbcbf0b5d8e236/crates/swc_ecma_ext_transforms/src/jest.rs) for writing actual `VisitMut`.
|
||||
|
@ -602,7 +602,7 @@ export interface EsParserConfig {
|
||||
}
|
||||
|
||||
/**
|
||||
* Options for trasnform.
|
||||
* Options for transform.
|
||||
*/
|
||||
export interface TransformConfig {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user