SWC Integration
March 4, 2023Less than 1 minute
SWC Integration
Fast JavaScript transpiler swc contains integration with Core-JS, that optimizes work with the global version of Core-JS. Like @babel/preset-env, it has 2 modes: usage and entry, but usage mode still works not so good like in babel. Example of configuration in .swcrc:
{
"env": {
"targets": "> 0.25%, not dead",
"mode": "entry",
"coreJs": "3.25"
}
}