Commit c5c4bef9 authored by Guy Bedford's avatar Guy Bedford Committed by Joe Haddad

fixup self-externalization

parent 40f6bdef
...@@ -5,6 +5,10 @@ const { basename, dirname, extname, join } = require('path') ...@@ -5,6 +5,10 @@ const { basename, dirname, extname, join } = require('path')
module.exports = function(task) { module.exports = function(task) {
// eslint-disable-next-line require-yield // eslint-disable-next-line require-yield
task.plugin('ncc', {}, function*(file, options) { 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), { return ncc(join(__dirname, file.dir, file.base), {
filename: file.base, filename: file.base,
minify: true, minify: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment