Skip to content

Commit 396262d

Browse files
authored
Fix browser false scenario (codesandbox#438)
1 parent 25d3fed commit 396262d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ export default class Manager {
373373
this.cachedPaths[pathId] = resolvedPath;
374374
}
375375

376-
if (NODE_LIBS.includes(shimmedPath)) {
376+
if (NODE_LIBS.includes(shimmedPath) || resolvedPath === '//empty.js') {
377377
return {
378378
path: pathUtils.join('/node_modules', resolvedPath),
379379
code: `// empty`,

0 commit comments

Comments
 (0)