2021-04-15 12:50:56 +02:00
|
|
|
import svelte from "rollup-plugin-svelte"
|
2021-03-31 11:59:07 +02:00
|
|
|
import resolve from "@rollup/plugin-node-resolve"
|
|
|
|
import commonjs from "@rollup/plugin-commonjs"
|
|
|
|
import json from "@rollup/plugin-json"
|
2021-04-15 12:50:56 +02:00
|
|
|
import { terser } from "rollup-plugin-terser"
|
2021-04-01 14:44:14 +02:00
|
|
|
import postcss from "rollup-plugin-postcss"
|
2021-03-31 11:59:07 +02:00
|
|
|
|
2021-04-15 20:28:08 +02:00
|
|
|
export default {
|
|
|
|
input: "src/index.js",
|
2021-04-15 12:50:56 +02:00
|
|
|
output: {
|
|
|
|
sourcemap: true,
|
|
|
|
format: "esm",
|
2021-04-15 20:28:08 +02:00
|
|
|
file: "dist/bbui.es.js",
|
2021-03-31 11:59:07 +02:00
|
|
|
},
|
2024-03-27 14:32:24 +01:00
|
|
|
onwarn(warning, warn) {
|
|
|
|
// suppress eval warnings
|
|
|
|
if (warning.code === "EVAL") {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
warn(warning)
|
|
|
|
},
|
2021-04-15 12:50:56 +02:00
|
|
|
plugins: [
|
|
|
|
resolve(),
|
|
|
|
commonjs(),
|
|
|
|
svelte({
|
|
|
|
emitCss: true,
|
|
|
|
}),
|
|
|
|
postcss(),
|
|
|
|
terser(),
|
|
|
|
json(),
|
|
|
|
],
|
2021-04-15 20:28:08 +02:00
|
|
|
}
|