2022-09-14 17:50:34 +02:00
|
|
|
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",
|
2022-09-15 16:17:19 +02:00
|
|
|
file: "./dist/sdk.mjs",
|
2022-09-14 17:50:34 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
commonjs(),
|
|
|
|
nodePolyfills(),
|
|
|
|
resolve({
|
|
|
|
preferBuiltins: true,
|
|
|
|
browser: true,
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
}
|