Skip to content

Commit

Permalink
Make Package exposable through require().
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Jan 16, 2019
1 parent c149647 commit 7adc4fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/module/internal/make-require-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ENTRY from "../../constant/entry.js"

import Entry from "../../entry.js"
import Module from "../../module.js"
import Package from "../../package.js"
import Runtime from "../../runtime.js"

import isDataProperty from "../../util/is-data-property.js"
Expand All @@ -29,6 +30,7 @@ const { symbol } = shared

const ownExportsMap = new Map([
[symbol.entry, Entry],
[symbol.package, Package],
[symbol.realGetProxyDetails, realGetProxyDetails],
[symbol.realRequire, realRequire],
[symbol.runtime, Runtime],
Expand Down

0 comments on commit 7adc4fd

Please sign in to comment.