swc-plugin-fetch-replace
v0.1.1
Published
SWC plugin for replaces global `fetch` with an arbitrary function.
Downloads
3
Readme
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
- [x] add examples
- [ ] add jest examples
- [ ] summarize in an article