Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit 7adc4fd

Browse files
committed
Make Package exposable through require().
1 parent c149647 commit 7adc4fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/module/internal/make-require-function.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ENTRY from "../../constant/entry.js"
66

77
import Entry from "../../entry.js"
88
import Module from "../../module.js"
9+
import Package from "../../package.js"
910
import Runtime from "../../runtime.js"
1011

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

3031
const ownExportsMap = new Map([
3132
[symbol.entry, Entry],
33+
[symbol.package, Package],
3234
[symbol.realGetProxyDetails, realGetProxyDetails],
3335
[symbol.realRequire, realRequire],
3436
[symbol.runtime, Runtime],

0 commit comments

Comments
 (0)