fix: checking nonexistent modules for server runtime

This commit is contained in:
cha0s 2024-02-18 08:32:50 -06:00
parent ea99829685
commit da6a1d530c

View File

@ -52,7 +52,7 @@ async function runtimeModule(compilation, flecks) {
` return ['${path}', M];`, ` return ['${path}', M];`,
' }', ' }',
' catch (error) {', ' catch (error) {',
' if (!error.message.startsWith("Cannot find module")) {', ` if (!error.message.startsWith("Cannot find module '${path}'")) {`,
' throw error;', ' throw error;',
' }', ' }',
' }', ' }',