Some checks failed
Build, Test, and Publish (to Private NPM Registry) UI Components Library / publish (push) Failing after 52m26s
15 lines
No EOL
500 B
JavaScript
15 lines
No EOL
500 B
JavaScript
import resolve from '@rollup/plugin-node-resolve';
|
|
import terser from '@rollup/plugin-terser'; // For minification
|
|
|
|
export default {
|
|
input: 'src/components/client-entry.js',
|
|
output: {
|
|
file: 'dist/client/components.js',
|
|
format: 'es', // ES Modules are perfect for Web Components
|
|
sourcemap: true,
|
|
},
|
|
plugins: [
|
|
resolve(), // Resolves node_modules if your components use external libraries
|
|
terser() // Minifies the output for production
|
|
]
|
|
}; |