1.1.1 • Published 3 years ago

snowpack-plugin-swc v1.1.1

Weekly downloads
19
License
MIT
Repository
github
Last release
3 years ago

snowpack-plugin-swc

swc is a faster tsc and babel alternative written in rust configurable with a .swcrc file

npm install --save-dev snowpack-plugin-swc
// snowpack.config.json
{
  "plugins": [
    [
      "snowpack-plugin-swc",
      {
        "input": ['.js', '.mjs', '.jsx', '.ts', '.tsx'], // (optional) specify files for swc to transform
        transformOptions: {
          // swc transform options
        }
      }
    ]
  ]
}

Plugin Options

NameTypeDescription
inputstring[](optional) By default, swc scans & transfoms these extensions: ['.js', '.jsx', '.ts', '.tsx']. Modify this array if you’d like to change this.
transformOptionsobject(optional) See https://swc.rs/docs/usage-core