Skip to content

Commit

Permalink
Tweak build process
Browse files Browse the repository at this point in the history
* Ensure search-worker is not babelified
* Minify production code with terser
* Exclude cross-fetch polyfill from the bundle
* Configure citeproc-rs wasm as external to avoid build warning
* Tweak which polyfills to pick (browserlist)
* Report bundle filesize.
* If DEBUG=true report size of every included dependency
  • Loading branch information
tnajdek committed Jun 8, 2021
1 parent 55a8723 commit 2d52bd5
Show file tree
Hide file tree
Showing 4 changed files with 3,041 additions and 115 deletions.
6 changes: 5 additions & 1 deletion babel.config.cjs
@@ -1,5 +1,9 @@
const presets = [
["@babel/preset-env", { "debug": !!process.env.DEBUG || false, "corejs": 3, "useBuiltIns": "usage" }],
["@babel/preset-env", {
"debug": !!process.env.DEBUG || false,
"corejs": 3,
"useBuiltIns": "usage",
}],
"@babel/preset-react"
];

Expand Down

0 comments on commit 2d52bd5

Please sign in to comment.