Skip to content

Commit 55d2418

Browse files
author
Ives van Hoorne
committed
Remove quick try logic
1 parent d037613 commit 55d2418

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/app/src/sandbox/eval/manager.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ export type Manifest = {
5757
},
5858
};
5959

60+
const relativeRegex = /^(\/|\.)/;
61+
6062
const NODE_LIBS = ['dgram', 'net', 'tls', 'fs', 'module', 'child_process'];
6163
// For these dependencies we don't want to follow along with the `browser` field
6264
const SKIPPED_BROWSER_FIELD_DEPENDENCIES = ['babel-core', '@babel/core'].reduce(
@@ -495,14 +497,6 @@ export default class Manager {
495497
return SHIMMED_MODULE;
496498
}
497499

498-
// Quick try
499-
const directPath = pathUtils.join(dirredPath, shimmedPath);
500-
const directModulePath = this.transpiledModules[directPath];
501-
if (directModulePath) {
502-
this.cachedPaths[dirredPath][path] = directPath;
503-
return directModulePath.module;
504-
}
505-
506500
try {
507501
resolvedPath = resolve.sync(shimmedPath, {
508502
filename: currentPath,

0 commit comments

Comments
 (0)