Skip to main content

SWC Integration

Less than 1 minuteguide

SWC Integration

Fast JavaScript transpiler swc contains integration with Core-JSopen in new window, 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"
  }
}