budibase/packages/string-templates/rollup.config.js

32 lines
669 B
JavaScript
Raw Normal View History

import commonjs from "rollup-plugin-commonjs"
import globals from "rollup-plugin-node-globals"
import builtins from "rollup-plugin-node-builtins"
2021-01-21 17:44:03 +01:00
import polyfills from "rollup-plugin-node-polyfills"
import resolve from "rollup-plugin-node-resolve"
import json from "@rollup/plugin-json"
export default {
input: "src/index.js",
output: {
file: "dist/bundle.js",
format: "umd",
name: "string-templates",
exports: "named",
globals: {
2021-01-21 12:32:26 +01:00
fs: "fs",
},
},
2021-01-21 17:44:03 +01:00
treeshake: true,
external: ["fs"],
plugins: [
2021-01-21 17:44:03 +01:00
polyfills(),
resolve({
preferBuiltins: false
}),
commonjs(),
globals(),
builtins(),
2021-01-21 17:44:03 +01:00
json(),
],
}