fixup self-externalization
This commit is contained in:
parent
40f6bdef32
commit
c5c4bef90e
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@ const { basename, dirname, extname, join } = require('path')
|
|||
module.exports = function(task) {
|
||||
// eslint-disable-next-line require-yield
|
||||
task.plugin('ncc', {}, function*(file, options) {
|
||||
if (options.externals && options.packageName) {
|
||||
options.externals = { ...options.externals }
|
||||
delete options.externals[options.packageName]
|
||||
}
|
||||
return ncc(join(__dirname, file.dir, file.base), {
|
||||
filename: file.base,
|
||||
minify: true,
|
||||
|
|
Loading…
Reference in a new issue