budibase/packages/bbui/rollup.config.js

26 lines
531 B
JavaScript
Raw Normal View History

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"
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
export default {
input: "src/index.js",
output: {
sourcemap: true,
format: "esm",
file: "dist/bbui.es.js",
2021-03-31 11:59:07 +02:00
},
plugins: [
2023-08-01 19:10:18 +02:00
resolve(),
2023-08-02 00:56:43 +02:00
commonjs(),
svelte({
emitCss: true,
}),
postcss(),
terser(),
json(),
],
}