From f061c52db6a5166e6ee625309c1ed921f11c4ce6 Mon Sep 17 00:00:00 2001 From: Luca Ban Date: Sun, 3 May 2020 07:59:59 +0900 Subject: [PATCH] Mark dependencies as external by default. Fixes #42 --- template/ui/build/script.javascript.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/template/ui/build/script.javascript.js b/template/ui/build/script.javascript.js index 6e0fba1..c8f0dda 100644 --- a/template/ui/build/script.javascript.js +++ b/template/ui/build/script.javascript.js @@ -123,9 +123,12 @@ function build (builds) { } function genConfig (opts) { + const pkg = require('../package.json') + const pkgDependencies = Object.keys(pkg.dependencies || []) + Object.assign(opts.rollup.input, { plugins: rollupPlugins, - external: [ 'vue', 'quasar' ] + external: [ 'vue', 'quasar' ].concat(pkgDependencies) }) Object.assign(opts.rollup.output, {