12345678910111213141516171819202122232425262728293031323334353637 |
- import svelte from "rollup-plugin-svelte";
- import externals from 'rollup-plugin-node-externals'
- import { VERSION } from './src/version'
- const production = VERSION.production
- export default [
- {
- input: [
- "src/main.js",
- "src/index.js"
- ],
- output: [
- {
- sourcemap: !production,
- dir: "build",
- format: "cjs",
- }
- ],
- plugins: [
- svelte({
- dev: !production,
- css: function (css) {
- css.write('bundle.css');
- },
- onwarn: (warning, handler) => {
- // if (warning.code === 'a11y-label-has-associated-control') return;
- handler(warning);
- }
- }),
- externals({deps: true})
- ],
- onwarn (warning, warn) {
- if (warning.code === 'CIRCULAR_DEPENDENCY') return;
- warn(warning);
- }
- }
- ];
|