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

25 lines
527 B
JavaScript
Raw Normal View History

import commonjs from "rollup-plugin-commonjs"
import nodeResolve from "rollup-plugin-node-resolve"
import globals from "rollup-plugin-node-globals"
import builtins from "rollup-plugin-node-builtins"
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",
},
},
external: ["fs"],
plugins: [
nodeResolve({ preferBuiltins: false }),
commonjs(),
globals(),
builtins(),
],
}