2021-01-18 18:40:19 +01:00
|
|
|
import commonjs from "rollup-plugin-commonjs"
|
2021-01-21 17:44:03 +01:00
|
|
|
import resolve from "rollup-plugin-node-resolve"
|
2021-01-21 18:30:18 +01:00
|
|
|
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"
|
2021-01-18 18:40:19 +01:00
|
|
|
|
|
|
|
export default {
|
|
|
|
input: "src/index.js",
|
2021-01-21 18:30:18 +01:00
|
|
|
output: [
|
|
|
|
{
|
|
|
|
sourcemap: true,
|
|
|
|
format: "umd",
|
|
|
|
file: "./dist/bundle.js",
|
|
|
|
name: "string-templates",
|
|
|
|
exports: "named",
|
2021-01-19 16:29:49 +01:00
|
|
|
},
|
2021-01-21 18:30:18 +01:00
|
|
|
],
|
2021-01-18 18:40:19 +01:00
|
|
|
plugins: [
|
2021-01-21 17:44:03 +01:00
|
|
|
resolve({
|
2021-01-21 18:30:18 +01:00
|
|
|
preferBuiltins: true,
|
|
|
|
browser: true,
|
2021-01-21 17:44:03 +01:00
|
|
|
}),
|
2021-01-18 18:40:19 +01:00
|
|
|
commonjs(),
|
|
|
|
globals(),
|
|
|
|
builtins(),
|
2021-01-21 17:44:03 +01:00
|
|
|
json(),
|
2021-01-18 18:40:19 +01:00
|
|
|
],
|
|
|
|
}
|