Socket
Socket
Sign inDemoInstall

rollup-plugin-swc3

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-swc3 - npm Package Versions

13

0.8.2

Diff

Changelog

Source

0.8.2

  • Enable CI auto publish release + npm provenance
sukkaw
published 0.8.1 •

Changelog

Source

0.8.1

  • Fix TypeScript declaration of include and exclude option (#32)
sukkaw
published 0.8.0 •

Changelog

Source

0.8.0

  • Add new option extensions.
    • Along with include / exclude, this provides a granular way to specify the files that will be processed by the plugin.
    • For extensionless imports the plugin will search and resolve files for extensions in the order specified.
sukkaw
published 0.7.0 •

Changelog

Source

0.7.0

  • Add Rollup 3.0.0 support.
    • rollup-plugin-swc now supports both Rollup 2 and Rollup 3.
sukkaw
published 0.6.0 •

Changelog

Source

0.6.0

  • Supports extends from tsconfig.json/jsconfig.json.
  • Supports passing a full path of a tsconfig.json/jsconfig.json file to tsconfig option.
  • When finding the nearest tsconfig.json/jsconfig.json from the source file that is currently being transpiled, rollup-plugin-swc's behavior is now aligned with tsc.
sukkaw
published 0.6.0-canary.0 •

sukkaw
published 0.5.0 •

Changelog

Source

0.5.0

  • rollup-plugin-swc now also respects jsx option from tsconfig.json when no corresponding swc option is provided.
    • jsxImportSource from tsconfig.json will be passed to swc's jsc.transform.react.importSource
    • if tsconfig.json specifies jsx: react-jsx or jsx: react-jsxdev, rollup-plugin-swc will set jsx.tramsform.react.runtime to automatic, otherwise it will be classic.
      • Currently, swc doesn't support preserving JSX, and will always transpile JSX into javascript code.
    • rollup-plugin-swc will also set jsx.tramsform.react.development to true if tsconfig.json specifies jsx: react-jsxdev.
sukkaw
published 0.4.2 •

Changelog

Source

0.4.2

  • Remove unused dependency (@huozhi #20)
sukkaw
published 0.4.1 •

Changelog

Source

0.4.1

  • Fix some minor issues.
sukkaw
published 0.4.0 •

Changelog

Source

0.4.0

  • Automatically pass rollup's file id to swc's filename option.
    • It should help swc find the .swcrc, and also enables some other swc's functionality
  • Automatically mapping .ts/.tsx to .mjs/.js/.cjs/.jsx.
    • When using native ESM, import path requires .js/.jsx extension for TypeScript with "moduleResolution": "Node16". So rollup-plugin-swc will now try all possible extensions.
    • E.g. if you write import Foo from 'foo.jsx', rollup-plugin-swc will search for foo.ts, foo.tsx, foo.mjs, foo.js, foo.jsx.
    • PRs are welcome if you want to make rollup-plugin-swc more spec compliant.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc