Mercurial > code > home > repos > streamed-graph
view rollup.config.js @ 38:d4036715028b
try exporting the PolymerElement so it can be depended on and therefore not culled by tree-shaking
author | drewp@bigasterisk.com |
---|---|
date | Sun, 29 Dec 2019 19:43:25 -0800 |
parents | 29d8ed02a275 |
children | 895ae7c5b0f4 |
line wrap: on
line source
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" } }), ] };