@@ -36,8 +36,7 @@ If a file is found, its path will be passed to the
36
36
point to be loaded with ECMAScript module loader, such as ` --import ` or
37
37
[ ` --experimental-default-type=module ` ] [ ] .
38
38
* The file has an ` .mjs ` extension.
39
- * The file has an ` .mjs ` or ` .wasm ` (with ` --experimental-wasm-modules ` )
40
- extension.
39
+ * The file has an ` .mjs ` or ` .wasm ` extension.
41
40
* The file does not have a ` .cjs ` extension, and the nearest parent
42
41
` package.json ` file contains a top-level [ ` "type" ` ] [ ] field with a value of
43
42
` "module" ` .
@@ -49,8 +48,7 @@ Otherwise, the file is loaded using the CommonJS module loader. See
49
48
50
49
When loading, the [ ES module loader] [ Modules loaders ] loads the program
51
50
entry point, the ` node ` command will accept as input only files with ` .js ` ,
52
- ` .mjs ` , or ` .cjs ` extensions; with ` .wasm ` extensions when
53
- [ ` --experimental-wasm-modules ` ] [ ] is enabled; and with no extension when
51
+ ` .mjs ` , ` .cjs ` or ` .wasm ` extensions; and with no extension when
54
52
[ ` --experimental-default-type=module ` ] [ ] is passed.
55
53
56
54
## Options
@@ -1015,8 +1013,7 @@ Node.js currently defaults to CommonJS to instead default to ECMAScript modules,
1015
1013
with the exception of folders and subfolders below ` node_modules ` , for backward
1016
1014
compatibility.
1017
1015
1018
- Under ` --experimental-default-type=module ` and ` --experimental-wasm-modules ` ,
1019
- files with no extension will be treated as WebAssembly if they begin with the
1016
+ Files with no extension will be treated as WebAssembly if they begin with the
1020
1017
WebAssembly magic number (` \0asm ` ); otherwise they will be treated as ES module
1021
1018
JavaScript.
1022
1019
@@ -1233,14 +1230,6 @@ changes:
1233
1230
1234
1231
Enable experimental WebAssembly System Interface (WASI) support.
1235
1232
1236
- ### ` --experimental-wasm-modules `
1237
-
1238
- <!-- YAML
1239
- added: v12.3.0
1240
- -->
1241
-
1242
- Enable experimental WebAssembly module support.
1243
-
1244
1233
### ` --experimental-webstorage `
1245
1234
1246
1235
<!-- YAML
@@ -3356,7 +3345,6 @@ one is included in the list below.
3356
3345
* ` --experimental-transform-types `
3357
3346
* ` --experimental-vm-modules `
3358
3347
* ` --experimental-wasi-unstable-preview1 `
3359
- * ` --experimental-wasm-modules `
3360
3348
* ` --experimental-webstorage `
3361
3349
* ` --force-context-aware `
3362
3350
* ` --force-fips `
@@ -3938,7 +3926,6 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12
3938
3926
[ `--env-file` ] : #--env-fileconfig
3939
3927
[ `--experimental-default-type=module` ] : #--experimental-default-typetype
3940
3928
[ `--experimental-sea-config` ] : single-executable-applications.md#generating-single-executable-preparation-blobs
3941
- [ `--experimental-wasm-modules` ] : #--experimental-wasm-modules
3942
3929
[ `--heap-prof-dir` ] : #--heap-prof-dir
3943
3930
[ `--import` ] : #--importmodule
3944
3931
[ `--no-experimental-strip-types` ] : #--no-experimental-strip-types
0 commit comments