From e5e39af9b9159ec88801380740804103d8908c04 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 28 Sep 2020 17:18:54 +0530 Subject: [PATCH] fix: Support single file builds in build.json --- rollup/config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rollup/config.js b/rollup/config.js index cdeb8eb952..6f11c782bb 100644 --- a/rollup/config.js +++ b/rollup/config.js @@ -198,7 +198,11 @@ function get_options_for(app) { .map(output_file => { if (output_file.startsWith('concat:')) return null; - const input_files = build_json[output_file] + let files = build_json[output_file]; + if (typeof files === 'string') { + files = [files]; + } + const input_files = files .map(input_file => { let prefix = get_app_path(app); if (input_file.startsWith('node_modules/')) {