We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
require.extensions
1 parent a2d2d36 commit 9ef1cd1Copy full SHA for 9ef1cd1
lib/repl.js
@@ -1338,7 +1338,7 @@ function complete(line, callback) {
1338
filter = completeOn;
1339
if (this.allowBlockingCompletions) {
1340
const subdir = match[2] || '';
1341
- const extensions = ObjectKeys(this.context.require.extensions);
+ const extensions = ObjectKeys(CJSModule._extensions);
1342
const indexes = ArrayPrototypeMap(extensions,
1343
(extension) => `index${extension}`);
1344
ArrayPrototypePush(indexes, 'package.json', 'index');
0 commit comments