From 8ba13f273c2fb4cd18e144f885a0c6b4b94e5880 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 26 Apr 2023 20:07:30 -0700 Subject: Add bundler documentation (#2753) * WIP * WIP * WIP * Document API * Updates * Polish bundler docs * Tweaks * Tweak --- docs/nav.ts | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'docs/nav.ts') diff --git a/docs/nav.ts b/docs/nav.ts index b3034a914..6bbbde529 100644 --- a/docs/nav.ts +++ b/docs/nav.ts @@ -102,7 +102,6 @@ export default { page("runtime/web-apis", "Web APIs", { description: `Bun implements an array of Web-standard APIs like fetch, URL, and WebSocket.`, }), - page("runtime/nodejs-apis", "Node.js compatibility", { description: `Bun aims for full Node.js compatibility. This page tracks the current compatibility status.`, }), @@ -125,10 +124,6 @@ export default { page("runtime/configuration", "Configuration", { description: `Bun's runtime is configurable with environment variables and the bunfig.toml config file.`, }), - page("runtime/plugins", "Plugins", { - description: `Implement custom loaders and module resolution logic with Bun's plugin system.`, - }), - page("runtime/framework", "Framework API", { disabled: true, description: @@ -158,6 +153,20 @@ export default { description: "Use `bun pm` to introspect your global module cache or project dependency tree.", }), + divider("Bundler"), + page("cli/build", "`Bun.build`", { + description: "Bundle code for comsumption in the browser with Bun's native bundler.", + }), + // page("bundler/intro", "How bundlers work", { + // description: "A visual introduction to bundling", + // }), + page("bundler/loaders", "Loaders", { + description: "Bun's built-in loaders for the bundler and runtime", + }), + page("bundler/plugins", "Plugins", { + description: `Implement custom loaders and module resolution logic with Bun's plugin system.`, + }), + divider("Test runner"), page("cli/test", "`bun test`", { description: "Bun's test runner uses Jest-compatible syntax but runs 100x faster.", -- cgit v1.2.3