Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// rollup.config.js
import commonjs from '@rollup/plugin-commonjs';
import import resolve from '@rollup/plugin-node-resolve';
import { terser } from 'rollup-plugin-terser';
+import json from '@rollup/plugin-json';
const config = {
input: 'index.js',
output: {
format: 'umd',
name: 'MyModuleName',
},
- plugins: [commonjs(), resolve(), terser()],
+ plugins: [commonjs(), resolve(), terser(), json()],
};
export default config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment