docs: document library external globals

This commit is contained in:
Evan You 2021-01-20 16:19:30 -05:00
parent 6d06ec07ae
commit 0633dabaf3

View File

@ -97,7 +97,16 @@ module.exports = {
name: 'MyLib'
},
rollupOptions: {
external: ['vue']
// make sure to externalize deps that shouldn't be bundled
// into your library
external: ['vue'],
output: {
// Provide global variables to use in the UMD build
// for externalized deps
globals: {
vue: 'Vue'
}
}
}
}
}