Skip to content

Commit

Permalink
fix: πŸš‘ add bind to catch (#830)
Browse files Browse the repository at this point in the history
* fix: πŸš‘ add bind to catch

* test: βœ… turn off skipModule in basic tree shaking test
  • Loading branch information
stormslowly authored Dec 28, 2023
1 parent 8bb87b3 commit f68c02f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/mako/templates/app_runtime.stpl
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 4 additions & 1 deletion e2e/fixtures/tree-shaking_export_default/mako.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"mode": "production",
"minify": false,
"hmr": false
"hmr": false,
"optimization": {
"skipModules": false
}
}

0 comments on commit f68c02f

Please sign in to comment.