diff options
author | Guy Bedford <guybedford@gmail.com> | 2019-10-07 00:09:20 -0400 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-10-10 16:29:08 -0700 |
commit | b798f645667c0b60cab84c467713a21c5676998d (patch) | |
tree | 45377fa6dd8fbf4bf58a842af61672f04329a9d5 /lib | |
parent | 1294c7e48564a549ef391786b67798d29238aace (diff) | |
download | android-node-v8-b798f645667c0b60cab84c467713a21c5676998d.tar.gz android-node-v8-b798f645667c0b60cab84c467713a21c5676998d.tar.bz2 android-node-v8-b798f645667c0b60cab84c467713a21c5676998d.zip |
esm: unflag --experimental-exports
PR-URL: https://github.com/nodejs/node/pull/29867
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/internal/modules/cjs/loader.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/internal/modules/cjs/loader.js b/lib/internal/modules/cjs/loader.js index 479044a26a..3580614481 100644 --- a/lib/internal/modules/cjs/loader.js +++ b/lib/internal/modules/cjs/loader.js @@ -70,7 +70,6 @@ const { } = require('internal/errors').codes; const { validateString } = require('internal/validators'); const pendingDeprecation = getOptionValue('--pending-deprecation'); -const experimentalExports = getOptionValue('--experimental-exports'); module.exports = { wrapSafe, Module }; @@ -369,7 +368,7 @@ function findLongestRegisteredExtension(filename) { const EXPORTS_PATTERN = /^((?:@[^/\\%]+\/)?[^./\\%][^/\\%]*)(\/.*)?$/; function resolveExports(nmPath, request, absoluteRequest) { // The implementation's behavior is meant to mirror resolution in ESM. - if (experimentalExports && !absoluteRequest) { + if (!absoluteRequest) { const [, name, expansion = ''] = StringPrototype.match(request, EXPORTS_PATTERN) || []; if (!name) { |