File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
packages/app/src/sandbox/eval Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ export default async function fetchModule(
313313
314314 if ( foundPath === '//empty.js' ) {
315315 return {
316- path : '/ / empty . js ',
316+ path : '/node_modules /empty/index .js' ,
317317 code : 'module . exports = { } ; ',
318318 requires : [ ] ,
319319 } ;
Original file line number Diff line number Diff line change @@ -633,6 +633,9 @@ export default class TranspiledModule {
633633
634634 evaluate ( manager : Manager , { asUMD = false } : { asUMD : boolean } = { } ) {
635635 if ( this . source == null ) {
636+ if ( this . module . path === '/node_modules/empty/index.js' ) {
637+ return { } ;
638+ }
636639 // This scenario only happens when we are in an inconsistent state, the quickest way to solve
637640 // this state is to just hard reload everything.
638641 manager . clearCache ( ) ;
You can’t perform that action at this time.
0 commit comments