Read a .swcrc: parser syntax, compilation target, module output, JSX runtime and source maps, with what each setting actually changes.
Waiting for an SWC configuration
Nothing is uploaded. Paste the file, or load an example.
SWC strips TypeScript types without checking them, exactly as Babel does. Whatever this file says, tsc --noEmit still has to run somewhere — moving a build to SWC and dropping the type check is how a project gets fast builds and type errors in production at the same time.
Paste an SWC configuration to see what it actually does.
This reads the configuration only. SWC merges env targets with jsc.target in ways that depend on the version, and a framework — Next.js among them — supplies much of this itself and ignores parts of a hand-written file. Nothing is compiled here, so the output and its size are outside what this can tell you.
SWC Configuration Inspector runs entirely on your device — your configuration is parsed in your browser and nothing is compiled or uploaded
You’re on the Free plan. Compare plans
SWC strips TypeScript types without checking them, exactly as Babel does. Whatever this file says, tsc --noEmit still has to run somewhere — moving a build to SWC and dropping the type check is how a project ends up with fast builds and type errors in production at the same time.
jsc.target decides what syntax survives, and both directions cost something. Set it low and SWC spends time transforming syntax that every engine you ship to already supports; set it above what you actually support and the output simply fails there, at runtime, in the browser nobody tested.
module.type has to match how the output will be loaded rather than how the source is written. Left unset, SWC emits whatever the input used, which is right for a bundler and wrong for output that Node has to load directly — and the resulting error talks about import statements outside a module.
No. It removes them. Type checking is a separate step — tsc --noEmit in CI or in your editor — and a build that is fast because it skipped the check has not saved you anything.
SWC uses its own default, which changes between versions. The same configuration can therefore produce different output after an upgrade, which is the kind of change that is hard to attribute later.
Set it when the output is loaded directly by Node or by a browser. Leave it unset when a bundler consumes the output, since the bundler decides the final format anyway.
Often. Next.js and several others supply most of the SWC configuration themselves and ignore parts of a hand-written .swcrc. Check your framework's documentation before assuming a setting here takes effect.
No. Nothing is compiled here, so output and its size are outside what this can say. The bundle stats analyser on this site reads a real build's statistics.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab