Skip to content

MinibloxCheaters2/rolldown-plugin-swc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@wq2/rolldown-plugin-swc

🍣 A Rolldown plugin to transpile TypeScript/JavaScript with the speedy-web-compiler (swc). Pasted from the Rollup version at @rollup/plugin-swc.

Requirements

This plugin requires my cat.

Install

Using npm:

npm install @swc/core @wq2/rolldown-plugin-swc --save-dev

Usage

Create a rolldown.config.js config file and import the plugin:

import swc from '@wq2/rolldown-plugin-swc';

export default {
  input: 'src/index.js',
  output: {
    dir: 'output',
    format: 'cjs'
  },
  plugins: [swc()]
};

Then call rolldown and do stuff.

Options

The plugin accepts an object as input parameter to modify the default behavior.

Alternatives

Just use Oxc from rolldown if you don't need i.e. non-legacy decorators, which should be fine enough for basically everyone except me.

Meta

CONTRIBUTING

LICENSE (MIT)

About

SWC plugin I use for Vape Rewrite to transform decorators because Oxc doesn't support them so Rolldown doesn't support them! yayyy idk cat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors