Skip to content

Instantly share code, notes, and snippets.

@mbrowne
mbrowne / rollup.config.js
Created February 4, 2022 21:43
Simple rollup config for compiling TypeScript with swc
import autoExternal from 'rollup-plugin-auto-external'
import json from '@rollup/plugin-json'
import ts from 'rollup-plugin-ts'
export default {
input: ['src/index.ts'],
plugins: [
// allow .json files to be imported
json(),