Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Add esm to core.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Mar 29, 2019
1 parent 7d0e50d commit 49a4cb2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/internal/bootstrap/pre_execution.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ function initializeFrozenIntrinsics() {
}

function loadPreloadModules() {
require('internal/esm');

// For user code, we preload modules if `-r` is passed
const preloadModules = getOptionValue('--require');
if (preloadModules) {
Expand Down
1 change: 1 addition & 0 deletions lib/internal/esm.js

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

1 change: 1 addition & 0 deletions lib/internal/esm/loader.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
'lib/internal/encoding.js',
'lib/internal/errors.js',
'lib/internal/error-serdes.js',
'lib/internal/esm.js',
'lib/internal/esm/loader.js',
'lib/internal/fixed_queue.js',
'lib/internal/freelist.js',
'lib/internal/freeze_intrinsics.js',
Expand Down

0 comments on commit 49a4cb2

Please sign in to comment.