1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00
budibase/packages/bbui/rollup.config.js

31 lines
693 B
JavaScript
Raw Normal View History

import svelte from "rollup-plugin-svelte"
2021-03-31 22:59:07 +13: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-02 01:44:14 +13:00
import postcss from "rollup-plugin-postcss"
2021-03-31 22:59:07 +13:00
const makeConfig = ({ input, name }) => ({
input,
output: {
sourcemap: true,
format: "esm",
file: `dist/${name}.es.js`,
2021-03-31 22:59:07 +13:00
},
plugins: [
resolve(),
commonjs(),
svelte({
emitCss: true,
}),
postcss(),
terser(),
json(),
],
2021-03-31 22:59:07 +13:00
})
export default [
makeConfig({ input: "src/index.js", name: "bbui" }),
makeConfig({ input: "src/Form/internal/index.js", name: "internal" }),
]