Skip to content

Commit f9b1745

Browse files
authored
Fix Node Libraries in manager (codesandbox#289)
1 parent 684a5cc commit f9b1745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sandbox/eval/manager.js

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

298-
if (NODE_LIBS.includes(resolvedPath)) {
298+
if (NODE_LIBS.includes(shimmedPath)) {
299299
return {
300300
path: pathUtils.join('/node_modules', resolvedPath),
301301
code: `// empty`,

0 commit comments

Comments
 (0)