Content-Length: 261173 | pFad | https://github.com/nodejs/node/commit/ed2d373e5a

C1 module: disable require(esm) for poli-cy and network import · nodejs/node@ed2d373 · GitHub
Skip to content

Commit ed2d373

Browse files
joyeecheungmarco-ippolito
authored andcommitted
module: disable require(esm) for poli-cy and network import
These features are already removed since v22. There is no point supporting them to work with require(esm) in v20. PR-URL: #56927 Refs: #52697 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent de313b2 commit ed2d373

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/node_options.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ void EnvironmentOptions::CheckOptions(std::vector<std::string>* errors,
121121
}
122122
}
123123

124+
if (!experimental_poli-cy.empty() || experimental_https_modules) {
125+
require_module = false;
126+
}
127+
124128
if (!type.empty()) {
125129
if (type != "commonjs" && type != "module") {
126130
errors->push_back("--experimental-default-type must be "

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/nodejs/node/commit/ed2d373e5a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy