Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import resolve from '@rollup/plugin-node-resolve';
- import commonjs from '@rollup/plugin-commonjs';
- export default [
- {
- input: 'src/index.js',
- output: {
- file: 'dist/bundle.cjs.js',
- format: 'cjs',
- },
- plugins: [resolve(), commonjs()],
- },
- {
- input: 'src/index.js',
- output: {
- file: 'dist/bundle.esm.js',
- format: 'esm',
- },
- plugins: [resolve()],
- }
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement