-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
39 lines (37 loc) · 895 Bytes
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import svelte from "rollup-plugin-svelte";
import externals from 'rollup-plugin-node-externals'
import css from 'rollup-plugin-css-only'
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({
compilerOptions: {
dev: VERSION.production
},
onwarn: (warning, handler) => {
// if (warning.code === 'a11y-label-has-associated-control') return;
handler(warning);
}
}),
externals({deps: true}),
css({output: 'bundle.css'})
],
onwarn (warning, warn) {
if (warning.code === 'CIRCULAR_DEPENDENCY') return;
warn(warning);
}
}
];