File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/app/src/sandbox/eval Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import DependencyNotFoundError from 'sandbox-hooks/errors/dependency-not-found-e
88 * @returns
99 */
1010export 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments