swc-plugin-fetch-replace
v0.1.1 swc-plugin
swc-plugin-fetch-replace
SWC plugin for replaces global fetch
with an arbitrary function.
Install
$ pnpm add -D swc-plugin-fetch-replace
Configuration
Function name with replace_fetch
.
.swcrc
{
"jsc": {
"experimental": {
"plugins": [
[
"swc-plugin-fetch-replace",
{
"replaceName": "replace_fetch"
}
]
]
}
}
}
todo
- add examples
- add jest examples
- summarize in an article
npm i swc-plugin-fetch-replace
Metadata
- MIT
- Whatever
- [email protected]
- released 8/23/2022