Mercurial > code > home > repos > streamed-graph
view rollup.config.js @ 43:2a48e13bafea
sort imports
author | drewp@bigasterisk.com |
---|---|
date | Wed, 01 Jan 2020 19:41:04 -0800 |
parents | 895ae7c5b0f4 |
children | 7d17a02b5ae0 |
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: "cjs", // just for the namedExports hack intro: "const global = window;", }, // only for final build. demo page does need these modules, so I guess this file should observe some kind of build mode. external: ['@polymer/polymer','lit-html','@polymer/decorators','n3','jsonld'], plugins: [ builtins(), resolve({ extensions: [".js", ".ts"], browser: true, only: ['streamed-graph'] }), typescript(), commonjs({ namedExports: { 'jsonld': ['expand'], // fixes "expand is not exported by node_modules/jsonld/lib/index.js" } }), ] };