Mercurial > code > home > repos > homeauto
diff service/wifi/rollup.config.js @ 673:f2215949c0c9
build adjustments. now seems to read streamedgraph correctly.
Ignore-this: 2768ea249aefb81d4720607e815d77c1
author | drewp@bigasterisk.com |
---|---|
date | Tue, 31 Dec 2019 02:45:25 -0800 |
parents | |
children | 2b9865bf1737 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/wifi/rollup.config.js Tue Dec 31 02:45:25 2019 -0800 @@ -0,0 +1,26 @@ +import builtins from "rollup-plugin-node-builtins"; +import commonjs from '@rollup/plugin-commonjs'; +import resolve from "@rollup/plugin-node-resolve"; +import typescript from "rollup-plugin-typescript2"; + +export default { + input: "src/index.ts", + output: { + file: "build/bundle.js", + format: "esm", + // intro: "const global = window;" + }, + plugins: [ + builtins(), + resolve({ + extensions: [".js", ".ts"], + browser: true + }), + typescript(), + commonjs({ + namedExports: { + 'jsonld': ['expand'], // fixes "expand is not exported by node_modules/jsonld/lib/index.js" + } + }), + ] +};