@@ -330,7 +330,7 @@ so mounting one is gated on its own flag rather than on `--allow-fs-read` or
330330` --allow-fs-write ` .
331331
332332``` console
333- $ node --experimental-vfs -- permission --allow-fs-vfs app.js
333+ $ node --permission --allow-fs-vfs app.js
334334```
335335
336336### ` --allow-fs-write `
@@ -1711,16 +1711,6 @@ with AND, so a test must satisfy every expression to run.
17111711A malformed expression causes the test runner to exit with a non-zero status
17121712before running any tests.
17131713
1714- ### ` --experimental-vfs `
1715-
1716- <!-- YAML
1717- added: v26.4.0
1718- -->
1719-
1720- > Stability: 1 - Experimental
1721-
1722- Enable the experimental [ ` node:vfs ` ] [ ] module.
1723-
17241714### ` --experimental-vm-modules `
17251715
17261716<!-- YAML
@@ -2364,6 +2354,18 @@ changes:
23642354
23652355Disable the experimental [ ` node:sqlite ` ] [ ] module.
23662356
2357+ ### ` --no-experimental-vfs `
2358+
2359+ <!-- YAML
2360+ added: v26.4.0
2361+ changes:
2362+ - version: REPLACEME
2363+ pr-url: https://github.com/nodejs/node/pull/66318
2364+ description: VFS is unflagged but still experimental.
2365+ -->
2366+
2367+ Disable the experimental [ ` node:vfs ` ] [ ] module and ` --vfs-load ` .
2368+
23672369### ` --no-experimental-webstorage `
23682370
23692371<!-- YAML
@@ -3907,11 +3909,13 @@ added: v26.10.0
39073909
39083910* ` source ` {string} A directory or an archive file to mount and run.
39093911
3910- Requires [ ` --experimental-vfs ` ] [ ] . May be given at most once.
3912+ May be given at most once.
39113913
39123914Mounts ` source ` as a virtual file system ([ ` node:vfs ` ] [ ] ), and runs the entry
39133915point and all subsequent ` require() ` /` import ` resolution against that mount
3914- rather than the real file system. The mount is placed at a reserved mount point
3916+ rather than the real file system. This option is unavailable when
3917+ ` --no-experimental-vfs ` disables [ ` node:vfs ` ] [ ] . The mount is placed at a
3918+ reserved mount point
39153919assigned by Node.js, so it never shadows real paths and no target can be
39163920chosen. The entry point is taken from the mount the same way ` node <directory> `
39173921takes one: the mount's own ` package.json ` ` "main" ` , or ` index.js ` . Any
@@ -3942,18 +3946,17 @@ same thing in all of them.
39423946
39433947A worker created with its own ` execArgv ` inherits none of the parent's options,
39443948and so does not mount the source at all. To run a script from the mount, such a
3945- worker must be given the same options again, ` --experimental-vfs ` and
3946- ` --vfs-load ` ; without them, that thread has no mount for the script to come
3947- from, and the worker fails to load it. ` --experimental-vfs ` is also what makes
3948- [ ` node:vfs ` ] [ ] available to the worker's own code. A worker whose script comes
3949- from anywhere else, such as the real file system, needs nothing added.
3949+ worker must be given ` --vfs-load ` again; without it, that thread has no mount
3950+ for the script to come from, and the worker fails to load it. [ ` node:vfs ` ] [ ] is
3951+ available to worker code without an experimental flag. A worker whose script
3952+ comes from anywhere else, such as the real file system, needs nothing added.
39503953
39513954` --vfs-load ` is not permitted in [ ` NODE_OPTIONS ` ] [ ] : which entry point runs is
39523955the command line's decision, and the environment must not be able to redirect
39533956it.
39543957
39553958``` console
3956- $ node --experimental-vfs -- vfs-load=app.zip
3959+ $ node --vfs-load=app.zip
39573960```
39583961
39593962### ` --watch `
@@ -4280,7 +4283,6 @@ one is included in the list below.
42804283* ` --experimental-stream-iter `
42814284* ` --experimental-test-isolation `
42824285* ` --experimental-top-level-await `
4283- * ` --experimental-vfs `
42844286* ` --experimental-vm-modules `
42854287* ` --experimental-wasi-unstable-preview1 `
42864288* ` --experimental-web-worker `
@@ -4315,6 +4317,7 @@ one is included in the list below.
43154317* ` --no-experimental-global-navigator `
43164318* ` --no-experimental-sqlite `
43174319* ` --no-experimental-strip-types `
4320+ * ` --no-experimental-vfs `
43184321* ` --no-experimental-webstorage `
43194322* ` --no-extra-info-on-fatal-exception `
43204323* ` --no-force-async-hooks-checks `
@@ -4914,7 +4917,6 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12
49144917[ `--env-file-if-exists` ] : #--env-file-if-existsfile
49154918[ `--env-file` ] : #--env-filefile
49164919[ `--experimental-sea-config` ] : single-executable-applications.md#1-generating-single-executable-preparation-blobs
4917- [ `--experimental-vfs` ] : #--experimental-vfs
49184920[ `--heap-prof-dir` ] : #--heap-prof-dir
49194921[ `--import` ] : #--importmodule
49204922[ `--no-require-module` ] : #--no-require-module
0 commit comments