From f17ce92c438b09c2c9dedf085f6e80cab56f13dd Mon Sep 17 00:00:00 2001 From: alexander-akait <4567934+alexander-akait@users.noreply.github.com> Date: Sun, 5 Jul 2026 00:56:59 +0000 Subject: [PATCH] docs: update --- OPTIONS.md | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/OPTIONS.md b/OPTIONS.md index fa7390e7983..341b0d5ad71 100644 --- a/OPTIONS.md +++ b/OPTIONS.md @@ -94,7 +94,7 @@ Options --no-experiments-defer-import Negative 'experiments-defer-import' option. --experiments-future-defaults Apply defaults of next major version. --no-experiments-future-defaults Negative 'experiments-future-defaults' option. - --experiments-html Enable experimental HTML support. This flag does not by itself make `.html` files usable directly as entry points without additional HTML handling. + --experiments-html Enable HTML entry support. Treats `.html` files as a first-class module type so they can be used directly as entry points. --no-experiments-html Negative 'experiments-html' option. --experiments-lazy-compilation Compile entrypoints and import()s only when they are accessed. --no-experiments-lazy-compilation Negative 'experiments-lazy-compilation' option. @@ -120,6 +120,10 @@ Options --extends-reset Clear all items provided in 'extends' configuration. Extend configuration from another configuration (only works when using webpack-cli). --externals Every matched dependency becomes external. An exact matched dependency becomes external. The same string is used as external dependency. --externals-reset Clear all items provided in 'externals' configuration. Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`. + --externals-presets-bun Treat bun built-in modules like 'bun', 'bun:sqlite' or 'bun:ffi' and node.js built-in modules as external and load them via import when used (for the Bun runtime). + --no-externals-presets-bun Negative 'externals-presets-bun' option. + --externals-presets-deno Treat node.js built-in modules like fs, path or vm as external and load them via the required 'node:' specifier when used (for the Deno runtime). + --no-externals-presets-deno Negative 'externals-presets-deno' option. --externals-presets-electron Treat common electron built-in modules in main and preload context like 'electron', 'ipc' or 'shell' as external and load them via require() when used. --no-externals-presets-electron Negative 'externals-presets-electron' option. --externals-presets-electron-main Treat electron built-in modules in the main context like 'app', 'ipc-main' or 'shell' as external and load them via require() when used. @@ -217,13 +221,14 @@ Options --module-generator-css-module-local-ident-hash-function Algorithm used for generation the hash (see node.js crypto package). --module-generator-css-module-local-ident-hash-salt Any string which is added to the hash to salt it. --module-generator-css-module-local-ident-name Configure the generated local ident name. - --module-generator-html-extract Emit the parsed and URL-rewritten HTML as a standalone `.html` output file alongside the module's JavaScript export. When unset, extraction defaults to `true` for HTML modules used as compilation entries (HTML entry points) and `false` for HTML modules imported from JavaScript. Filenames follow `output.htmlFilename` / `output.htmlChunkFilename`. + --module-generator-html-extract [value] Emit the parsed and URL-rewritten HTML as a standalone `.html` output file alongside the module's JavaScript export. `true` always emits the file; `false` never does; `"inline"` exposes the processed HTML for inline write-back (e.g. `