Skip to content

Instantly share code, notes, and snippets.

@hatemogi
Created February 2, 2023 03:58
Show Gist options
  • Save hatemogi/338d2c6044bf55e79f9b2ebceade6602 to your computer and use it in GitHub Desktop.
Save hatemogi/338d2c6044bf55e79f9b2ebceade6602 to your computer and use it in GitHub Desktop.
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
export default {
input: 'src/index.ts',
output: {
dir: 'public',
format: 'cjs'
},
plugins: [
resolve({ browser: true, preferBuiltins: true }),
commonjs(),
typescript()]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment