All Projects → mentaljam → rollup-plugin-swc

mentaljam / rollup-plugin-swc

Licence: MIT license
Rollup plugin to compile bundles with the SWC.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to rollup-plugin-swc

rollup-plugin-collect-sass
Collect Sass, then compile
Stars: ✭ 17 (-71.19%)
Mutual labels:  rollup
magic-scroll
Apple Magic Mouse scrolling effect for normal mouses
Stars: ✭ 43 (-27.12%)
Mutual labels:  rollup
vue-methods-promise
Let Vue methods support return Promise
Stars: ✭ 35 (-40.68%)
Mutual labels:  rollup
Arbitrum Doc CN
Arbitrum官方文档中文版
Stars: ✭ 52 (-11.86%)
Mutual labels:  rollup
rollup-plugin-jscc
Conditional compilation and compile-time variable replacement for Rollup
Stars: ✭ 52 (-11.86%)
Mutual labels:  rollup
react-component-lib
Boilerplate repo for creating npm packages with React components written in TypeScript and using styled-components
Stars: ✭ 69 (+16.95%)
Mutual labels:  rollup
ol-extent
🍭 🎩 👻 | a JavaScript library for openlayers extent
Stars: ✭ 11 (-81.36%)
Mutual labels:  rollup
unplugin-vue
✨ Transform Vue 3 SFC to JavaScript. Supports Vite, esbuild, Rollup and Webpack.
Stars: ✭ 38 (-35.59%)
Mutual labels:  rollup
zero
📦 A zero config scripts library
Stars: ✭ 17 (-71.19%)
Mutual labels:  rollup
vue-frag-plugin
Webpack/Rollup/Vite plugin to add multiple root-node support to Vue 2 SFCs
Stars: ✭ 37 (-37.29%)
Mutual labels:  rollup
js-module-system
A small UI library to demonstrate the JS module system
Stars: ✭ 36 (-38.98%)
Mutual labels:  rollup
rollup-plugin-markdown
import JavaScript from Markdown code blocks
Stars: ✭ 16 (-72.88%)
Mutual labels:  rollup
rollup-jest-boilerplate
🎉 Full featured boilerplate for building JavaScript libraries the modern way
Stars: ✭ 81 (+37.29%)
Mutual labels:  rollup
base-ui
A component library for Vue developmemt
Stars: ✭ 35 (-40.68%)
Mutual labels:  rollup
npm-es-modules
Breakdown of 7 different ways to use ES modules with npm today.
Stars: ✭ 67 (+13.56%)
Mutual labels:  rollup
ts-lib-scripts
以 🚀 速度创建零配置 TypeScript 库项目的命令行工具
Stars: ✭ 56 (-5.08%)
Mutual labels:  rollup
manager
OVHcloud Control Panel
Stars: ✭ 153 (+159.32%)
Mutual labels:  rollup
r1cs-tutorial
Tutorial for writing constraints in the `arkworks` framework
Stars: ✭ 74 (+25.42%)
Mutual labels:  rollup
rocket
The modern web setup for static sites with a sprinkle of JavaScript
Stars: ✭ 169 (+186.44%)
Mutual labels:  rollup
fly-helper
It's a Tool library, method collection
Stars: ✭ 21 (-64.41%)
Mutual labels:  rollup

rollup-plugin-swc

Rollup plugin to compile bundles with the SWC.

Install

npm i -D rollup-plugin-swc @swc/core

Note: @swc/core is a peer dependency

Usage

// rollup.config.js

import swc from 'rollup-plugin-swc'


export default {
  input: 'index.ts',
  output: {
    dir: 'dist',
    format: 'es',
  },
  plugins: [
    swc({
      rollup: {
        exclude: 'path/to/exclude/',
      },
      jsc: {
        parser: {
          syntax: 'typescript',
        },
        target: 'es2018',
      },
    }),
  ],
}

Options

The plugin takes all the SWC options except the filename.

In addition to the above SWC Options, it takes following options for smoother integration with the rollup plugin convention:

rollup.exclude

Type: String | Array[...String]
Default: null

A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should ignore. By default no files are ignored.

rollup.include

Type: String | Array[...String]
Default: null

A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should operate on. By default all files are targeted.

License

MIT © Petr Tsymbarovich

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].