Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-swc3

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-swc3 - npm Package Versions

12

0.4.1

Diff

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.
sukkaw
published 0.3.0 •

Changelog

Source

0.3.0

  • Completely disable swc minify during rollup's transform phase.
    • Now all minify will be done in rollup's renderChunk phase, which is a one-pass process, resulting in even faster build performance.
  • Remove the workaround for rollup's virtual module that is introduced in 0.1.2 (https://github.com/SukkaW/rollup-plugin-swc/pull/1)
    • swc has fixed the issue, and the corresponding test case has been added in https://github.com/swc-project/swc/pull/4255
    • The peerDependencies of swc has been updated to >=1.2.165. You will need to bump the version of swc to 1.2.165 or higher after this release.
sukkaw
published 0.2.0 •

Changelog

Source

0.2.0

  • Standalone minify plugin
  • Support reading baseUrl and paths from your tsconfig.json (and jsconfig.json).
    • These fields will be passed to swc directly. They won't affect how rollup resolve your imports. Please use other plugins to resolve your imports' aliases (e.g., add rollup-plugin-typescript-paths or rollup-plugin-tsconfig-paths before @rollup/plugin-node-resolve).
sukkaw
published 0.1.4 •

Changelog

Source

0.1.4

  • Add .mjs extension support
  • Export a default for use with rollup's --configPlugin
sukkaw
published 0.1.3 •

Changelog

Source

0.1.3

  • Fix a bug caused by the workaround introduced in 0.1.2
sukkaw
published 0.1.2 •

Changelog

Source

0.1.2

  • Fix transform failed when rollup virtual module is involved.
    • https://rollupjs.org/guide/en/#conventions
    • https://github.com/SukkaW/rollup-plugin-swc/pull/1
    • https://github.com/swc-project/swc/issues/2853
  • Support read default config from jsconfig.json as well
    • jsconfig.json will be ignored if tsconfig.json and jsconfig.json both exists.
sukkaw
published 0.1.1 •

Changelog

Source

0.1.1

  • Add .npmignore to reduce the size of the package.
  • Use deepmerge to merge plugin options config with your given tsconfig.json.
sukkaw
published 0.1.0 •

Changelog

Source

0.1.0

The first release.

sukkaw
published 0.0.0 •

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