You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jscomp/bsb/bsb_templates.ml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -610,6 +610,8 @@ let root = OCamlRes.Res.([
610
610
```\n\
611
611
\n\
612
612
This will replace the development artifact `build/Index.js` for an optimized version.\n\
613
+
\n\
614
+
**To enable dead code elimination**, change `bsconfig.json`'s `package-specs` `module` from `\"commonjs\"` to `\"es6\"`. Then re-run the above 2 commands. This will allow Webpack to remove unused code.\n\
Copy file name to clipboardExpand all lines: lib/bsb.ml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13539,6 +13539,8 @@ let root = OCamlRes.Res.([
13539
13539
```\n\
13540
13540
\n\
13541
13541
This will replace the development artifact `build/Index.js` for an optimized version.\n\
13542
+
\n\
13543
+
**To enable dead code elimination**, change `bsconfig.json`'s `package-specs` `module` from `\"commonjs\"` to `\"es6\"`. Then re-run the above 2 commands. This will allow Webpack to remove unused code.\n\
13542
13544
") ;
13543
13545
File ("package.json",
13544
13546
"{\n\
@@ -13584,7 +13586,7 @@ let root = OCamlRes.Res.([
0 commit comments