404 Page
You might be lost, wanna go back home?
diff --git a/docs/404.html b/docs/404.html new file mode 100644 index 0000000..8dec187 --- /dev/null +++ b/docs/404.html @@ -0,0 +1,98 @@ +
You might be lost, wanna go back home?
bundle is a quick and easy way to bundle your projects and see the minified and gzip size, it's similar to bundlephobia but does all the work locally on you computer and can treeshake multiple packages (both commonjs and esm) into a bundle, it also supports Typescript.
I used monaco-editor for the code-editor, esbuild and rollup as bundler and treeshaker respectively, pako as a js port of the zlib and gzip libraries, pretty-bytes to convert the gzip size to human readable values, and countapi-js to keep track of the number of page visits, in a private and secure way.
This project was greatly influenced by @hardfists neo-tools and @mizchi's uniroll project.
The project isn't perfect, I am still working on an autocomplete, hover intellisence, better mobile support and the high memory usage of esbuild and monaco as well as some edge case packages, e.g. monaco-editor.
If there is something I missed, a mistake, or a feature you would like added please create an issue or a pull request and I'll try to get to it. You can contribute to this project at okikio/bundle.
bundle uses Conventional Commits as the style of commit, and the Commitizen CLI to make commits easier.
You can join the discussion on github discussions.
I often get asked what was the point in building bundle, this is a short, quick, and simple summary of my reasons for building bundle.
There are a couple reasons for this but the main one is that bundlephobia wasn't reliable enough.
It can treeshake bundles accurately. Right now `bundlephobia`, is a bit hit or miss when it comes to treeshaking.
For example, try treeshaking the Event class from @okikio/emitter using bundlephobia and try pasting this,
export { Event } from "@okikio/emitter";
+
+into bundle.js.org. You will notice a major package size disparity. This is only one example and I am sure others exist, I hope the above example illustrates my point.
+Another problem with bundlephobia is the lack of good error reporting if (for whatever reason) bundlephobia isn't able to bundle your package, it logs this to the console,
{
+ "code": "BuildError",
+ "message": "Failed to build this package.",
+ "details": {
+ "name": "BuildError"
+ }
+}
+
+this just isn't very useful for debugging. bundle.js.org run locally.
On the other hand, since, bundle.js.org runs locally right on your computer, when an error occurs it logs the exact error you would see when using esbuild or other bundlers in your build process, making it much easier to know what is wrong with your js bundle.
Yes, locally right on your browser, I used esbuild-wasm for the main bundler and rollup for more accurate treeshaking, and it enables you to download the bundled code right from the browser console (note: the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