Skip to content

Commit

Permalink
fix: error when dynamic importing ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Apr 5, 2023
1 parent 81073ff commit 321b89b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ process.on('message', options => {
module._load = function(name, parent, isMain) {
const file = module._resolveFilename(name, parent)
if (
parent &&
(options.includeModules || file.indexOf('node_modules') < 0) &&
!natives[file] &&
file !== main
Expand Down

0 comments on commit 321b89b

Please sign in to comment.