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

29 lines
589 B
JavaScript
Raw Normal View History

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