Skip to content

Commit

Permalink
Update esm package detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton authored and novemberborn committed Feb 14, 2019
1 parent 2fce19f commit 565822e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lib/worker/subprocess.js
Expand Up @@ -111,7 +111,8 @@ ipc.options.then(options => {
const required = require(mod);

try {
if (required[Symbol.for('esm\u200D:package')]) {
if (required[Symbol.for('esm:package')] ||
required[Symbol.for('esm\u200D:package')]) {
require = required(module); // eslint-disable-line no-global-assign
}
} catch (_) {}
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -96,7 +96,7 @@
"empower-core": "^1.2.0",
"equal-length": "^1.0.0",
"escape-string-regexp": "^1.0.5",
"esm": "^3.1.3",
"esm": "^3.2.4",
"figures": "^2.0.0",
"find-up": "^3.0.0",
"get-port": "^4.1.0",
Expand Down

0 comments on commit 565822e

Please sign in to comment.