2021-01-18 18:40:19 +01:00
|
|
|
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: {
|
2021-01-19 16:29:49 +01:00
|
|
|
file: "dist/bundle.js",
|
2021-01-18 18:40:19 +01:00
|
|
|
format: "umd",
|
|
|
|
name: "string-templates",
|
2021-01-19 16:29:49 +01:00
|
|
|
exports: "named",
|
|
|
|
globals: {
|
2021-01-21 12:32:26 +01:00
|
|
|
fs: "fs",
|
2021-01-19 16:29:49 +01:00
|
|
|
},
|
2021-01-18 18:40:19 +01:00
|
|
|
},
|
|
|
|
external: ["fs"],
|
|
|
|
plugins: [
|
|
|
|
nodeResolve({ preferBuiltins: false }),
|
|
|
|
commonjs(),
|
|
|
|
globals(),
|
|
|
|
builtins(),
|
|
|
|
],
|
|
|
|
}
|