fix: checking nonexistent modules for server runtime
This commit is contained in:
parent
ea99829685
commit
da6a1d530c
|
@ -52,7 +52,7 @@ async function runtimeModule(compilation, flecks) {
|
|||
` return ['${path}', M];`,
|
||||
' }',
|
||||
' catch (error) {',
|
||||
' if (!error.message.startsWith("Cannot find module")) {',
|
||||
` if (!error.message.startsWith("Cannot find module '${path}'")) {`,
|
||||
' throw error;',
|
||||
' }',
|
||||
' }',
|
||||
|
|
Loading…
Reference in New Issue
Block a user