Advertisement
Guest User

Untitled

a guest
Apr 21st, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import resolve from '@rollup/plugin-node-resolve';
  2. import commonjs from '@rollup/plugin-commonjs';
  3.  
  4. export default [
  5.   {
  6.     input: 'src/index.js',
  7.     output: {
  8.       file: 'dist/bundle.cjs.js',
  9.       format: 'cjs',
  10.     },
  11.     plugins: [resolve(), commonjs()],
  12.   },
  13.   {
  14.     input: 'src/index.js',
  15.     output: {
  16.       file: 'dist/bundle.esm.js',
  17.       format: 'esm',
  18.     },
  19.     plugins: [resolve()],
  20.   }
  21. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement