Skip to content

Commit

Permalink
Mark dependencies as external by default. Fixes quasarframework#42
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb authored May 2, 2020
1 parent 7624395 commit f061c52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion template/ui/build/script.javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit f061c52

Please sign in to comment.