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.
1 parent a92581c commit 4aee050Copy full SHA for 4aee050
packages/app/src/sandbox/eval/manager.js
@@ -384,14 +384,16 @@ export default class Manager {
384
385
if (NODE_LIBS.includes(shimmedPath) || resolvedPath === '//empty.js') {
386
return {
387
- path: pathUtils.join('/node_modules', resolvedPath),
+ path: pathUtils.join('/node_modules', 'empty', 'index.js'),
388
code: `// empty`,
389
requires: [],
390
};
391
}
392
393
return this.transpiledModules[resolvedPath].module;
394
} catch (e) {
395
+ delete this.cachedPaths[pathId];
396
+
397
let connectedPath = /^(\w|@\w)/.test(shimmedPath)
398
? pathUtils.join('/node_modules', shimmedPath)
399
: pathUtils.join(pathUtils.dirname(currentPath), shimmedPath);
0 commit comments