Mercurial > code > home > repos > streamed-graph
diff rollup.config.js @ 50:1264ba9ffb10
make a full-element version for pages that want to try to use that
author | drewp@bigasterisk.com |
---|---|
date | Thu, 09 Jan 2020 00:33:16 -0800 |
parents | b8e5850acca0 |
children | 5b8685d95bf4 |
line wrap: on
line diff
--- a/rollup.config.js Thu Jan 09 00:05:32 2020 -0800 +++ b/rollup.config.js Thu Jan 09 00:33:16 2020 -0800 @@ -16,7 +16,7 @@ { input: "src/index.ts", output: { - file: "build/bundle.js", + file: "build/lib.bundle.js", format: "esm", intro: `const ${workaround_some_browser_detector}, ${workaround_jsonld_module_system_picker};` }, @@ -40,6 +40,26 @@ }), commonjs(workaround_jsonld_expand_issue) ] + },{ + input: "src/index.ts", + output: { + file: "build/element.bundle.js", + format: "esm", + intro: `const ${workaround_some_browser_detector}, ${workaround_jsonld_module_system_picker};` + }, + external: [], + plugins: [ + builtins(), + resolve({ + extensions: [".js", ".ts"], + browser: true, + }), + typescript(), + postcss({ + inject: false + }), + commonjs(workaround_jsonld_expand_issue) + ] }, { input: "src/demo.ts",