2020-02-03 10:24:25 +01:00
|
|
|
import resolve from "rollup-plugin-node-resolve"
|
|
|
|
import commonjs from "rollup-plugin-commonjs"
|
|
|
|
import builtins from "rollup-plugin-node-builtins"
|
|
|
|
import nodeglobals from "rollup-plugin-node-globals"
|
2019-09-06 14:04:23 +02:00
|
|
|
|
|
|
|
export default {
|
2020-02-03 10:24:25 +01:00
|
|
|
input: "src/index.js",
|
|
|
|
output: [
|
|
|
|
{
|
|
|
|
sourcemap: true,
|
|
|
|
format: "iife",
|
|
|
|
name: "app",
|
|
|
|
file: `./dist/budibase-client.js`,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "dist/budibase-client.esm.mjs",
|
|
|
|
format: "esm",
|
|
|
|
sourcemap: "inline",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
resolve({
|
|
|
|
preferBuiltins: true,
|
|
|
|
browser: true,
|
|
|
|
}),
|
2020-08-13 12:50:12 +02:00
|
|
|
commonjs(),
|
2020-02-03 10:24:25 +01:00
|
|
|
builtins(),
|
|
|
|
nodeglobals(),
|
|
|
|
],
|
|
|
|
watch: {
|
|
|
|
clearScreen: false,
|
|
|
|
},
|
|
|
|
}
|