Skip to content
Snippets Groups Projects
Commit 96f727f7 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Add a dummy entry point for rollup

When specifying a package for code splitting, rollup requires the
packages to have a valid entry point for some reason.

Add an empty one.
parent aab3c1fd
No related branches found
No related tags found
No related merge requests found
// dummy entry point
{
"name": "vpu-common",
"version": "1.0.1",
"module": "index.js",
"devDependencies": {
"karma": "^4.2.0",
"karma-chai": "^0.1.0",
......@@ -18,7 +19,7 @@
},
"scripts": {
"clean": "rm dist/*",
"build": "npm run build-local",
"build": "rollup -c",
"build-test": "rollup -c --environment BUILD:test",
"test": "npm run build-test && karma start --singleRun"
},
......
......@@ -7,7 +7,7 @@ const build = (typeof process.env.BUILD !== 'undefined') ? process.env.BUILD : '
console.log("build: " + build);
export default {
input: 'test/**/*.js',
input: (build !='test') ? 'index.js' : 'test/**/*.js',
output: {
file: 'dist/bundle.js',
format: 'esm'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment