Skip to content

Commit

Permalink
fix(build): use vue demi as global
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Nov 21, 2020
1 parent 1d06e7c commit 014253e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ function createConfig(format, output, plugins = []) {
output.sourcemap = !!process.env.SOURCE_MAP
output.banner = banner
output.externalLiveBindings = false
output.globals = format.endsWith('vue-2')
? { 'vue-demi': 'VueCompositionAPI' }
: { 'vue-demi': 'Vue' }
output.globals = { 'vue-demi': 'VueDemi' }

const isProductionBuild = /\.prod\.js$/.test(output.file)
const isGlobalBuild = format.startsWith('global')
Expand Down

0 comments on commit 014253e

Please sign in to comment.