fix: Error: Module did not self-register

This commit is contained in:
Clark Du 2017-12-10 01:30:00 +08:00 committed by Pooya Parsa
parent eeb79a25da
commit 0b9cd1b408

View File

@ -475,7 +475,7 @@ export default class Builder {
/* istanbul ignore if */
if (err) return reject(err)
// not keep modified or deleted items in Vue.prototype
Object.keys(require.cache).forEach(key => delete require.cache[key])
Object.keys(require.cache).forEach(key => !/\.node$/.test(key) && delete require.cache[key])
})
)
return