diff --git a/crates/mako/templates/app_runtime.stpl b/crates/mako/templates/app_runtime.stpl index 5a731872e..90bec83bc 100644 --- a/crates/mako/templates/app_runtime.stpl +++ b/crates/mako/templates/app_runtime.stpl @@ -130,7 +130,7 @@ function createRuntime(makoModules, entryModuleId) { requireModule.publicPath.replace(/^(\/\/)/, 'https:$1') ).pathname; } - } catch {} + } catch(e) {} return Array.from( document.querySelectorAll('link[href][rel=stylesheet]'), ).find(function (link) { diff --git a/e2e/fixtures/tree-shaking_export_default/mako.config.json b/e2e/fixtures/tree-shaking_export_default/mako.config.json index e5d67ed74..f1427b7fa 100644 --- a/e2e/fixtures/tree-shaking_export_default/mako.config.json +++ b/e2e/fixtures/tree-shaking_export_default/mako.config.json @@ -1,5 +1,8 @@ { "mode": "production", "minify": false, - "hmr": false + "hmr": false, + "optimization": { + "skipModules": false + } }