21 lines
468 B
JavaScript
21 lines
468 B
JavaScript
|
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: "build/bundle.js",
|
||
|
format: "umd",
|
||
|
name: "string-templates",
|
||
|
},
|
||
|
external: ["fs"],
|
||
|
plugins: [
|
||
|
nodeResolve({ preferBuiltins: false }),
|
||
|
commonjs(),
|
||
|
globals(),
|
||
|
builtins(),
|
||
|
],
|
||
|
}
|