mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
docs: document library external globals
This commit is contained in:
parent
6d06ec07ae
commit
0633dabaf3
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user