Skip to content

Commit 656f795

Browse files
committed
Fix more issues
1 parent ad72a0b commit 656f795

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/app/src/sandbox/eval/loaders/dependency-resolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import DependencyNotFoundError from 'sandbox-hooks/errors/dependency-not-found-e
88
* @returns
99
*/
1010
export default function getDependency(dependencyPath: string) {
11-
if (dependencyPath.startsWith('@babel/runtime')) {
11+
if (dependencyPath.startsWith('@babel/runtime/')) {
1212
// We have a precomputed bundle for this, since it's small anyway
1313
return require('./@babel-runtime.no-webpack')(dependencyPath);
1414
}

packages/app/src/sandbox/eval/transpiled-module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export default class TranspiledModule {
401401
},
402402
addDependency: (depPath: string, options = {}) => {
403403
if (
404-
depPath.startsWith('@babel/runtime') ||
404+
depPath.startsWith('@babel/runtime/') ||
405405
depPath.startsWith('codesandbox-api')
406406
) {
407407
return;
@@ -836,7 +836,7 @@ export default class TranspiledModule {
836836
// So it must be a dependency
837837
if (
838838
path.startsWith('codesandbox-api') ||
839-
path.startsWith('@babel/runtime')
839+
path.startsWith('@babel/runtime/')
840840
) {
841841
return resolveDependency(path, manager.externals);
842842
}

0 commit comments

Comments
 (0)