Skip to content

Instantly share code, notes, and snippets.

@nweldev
Created March 3, 2019 10:49
Show Gist options
  • Save nweldev/a183eba8eb9c3f7ec9acb31da7daf9a3 to your computer and use it in GitHub Desktop.
Save nweldev/a183eba8eb9c3f7ec9acb31da7daf9a3 to your computer and use it in GitHub Desktop.
LitElement ESM build 2/2 - lit-element bundle
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
export default [
// esm + es2017 w/o lit-element
{//...},
// lit-element bundle
{
input: 'node_modules/lit-element/lit-element.js',
output: {
file: `lib/lit-element.js`,
format: 'es'
},
plugins: [resolve(), commonjs()]
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment