Rollup configuration preset for building web components with lit-element. Version 0.3.4 provides an environment-driven config that supports TypeScript, SCSS/Sass, PostCSS, Terser minification, and Babel transpilation. It uses peer dependencies rollup 2.x and tslib 2.0.x. Key differentiators: single import for all plugins and configs, environment flags for bundle/compress/ECMAScript target, and built-in lit-element integration. Suitable for monorepos with multiple packages. Note: not extensively tested in IE11, and uses deprecated 'isAsset' check (no impact).
npm install rollup-config-webcomponentVerified import paths — ran on the pinned version, not inferred.
Shows minimal usage: import the factory function and pass options (name, input) to generate a Rollup config.
No action needed; warning is cosmetic. Wait for upstream fix.
Ensure your tsconfig.json includes 'declaration: true' and set '--environment bundle' config accordingly.
Install correct peer versions: 'npm install rollup@2 tslib@2.0'
If you need ES5 output, ensure ecma:5 is passed via environment or options.
Run 'npm install rollup-config-webcomponent --save-dev'
Use ES module import syntax: 'import createConfig from 'rollup-config-webcomponent''
Install tslib: 'npm install tslib@2.0'