budibase/packages/sdk/rollup.config.js

23 lines
429 B
JavaScript
Raw Permalink Normal View History

import commonjs from "@rollup/plugin-commonjs"
import resolve from "@rollup/plugin-node-resolve"
import nodePolyfills from "rollup-plugin-polyfill-node"
export default {
input: "src/index.js",
output: [
{
sourcemap: false,
format: "esm",
file: "./dist/sdk.mjs",
},
],
plugins: [
commonjs(),
nodePolyfills(),
resolve({
preferBuiltins: true,
browser: true,
}),
],
}