Skip to content

Instantly share code, notes, and snippets.

@AlbertoDePena
Created November 26, 2018 20:43
Show Gist options
  • Save AlbertoDePena/1c1f8d0eac6ddeeb8a9dba378178adfe to your computer and use it in GitHub Desktop.
Save AlbertoDePena/1c1f8d0eac6ddeeb8a9dba378178adfe to your computer and use it in GitHub Desktop.
import babel from 'rollup-plugin-babel';
import common from 'rollup-plugin-commonjs';
import copy from 'rollup-plugin-copy';
import resolve from 'rollup-plugin-node-resolve';
export default {
input: 'src/index.js',
output: {
file: 'dist/index.js',
format: 'esm'
},
plugins: [
resolve(),
common(),
babel(),
copy({
'node_modules/@webcomponents/webcomponentsjs': 'dist/webcomponentsjs',
verbose: true
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment