File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -1327,13 +1327,15 @@ validating the import attributes.
1327
1327
1328
1328
The final value of ` format` must be one of the following:
1329
1329
1330
- | ` format` | Description | Acceptable types for ` source` returned by ` load` |
1331
- | ------------ | ------------------------------ | -------------------------------------------------- |
1332
- | ` ' builtin' ` | Load a Node.js builtin module | {null} |
1333
- | ` ' commonjs' ` | Load a Node.js CommonJS module | {string\| ArrayBuffer\| TypedArray\| null\| undefined} |
1334
- | ` ' json' ` | Load a JSON file | {string\| ArrayBuffer\| TypedArray} |
1335
- | ` ' module' ` | Load an ES module | {string\| ArrayBuffer\| TypedArray} |
1336
- | ` ' wasm' ` | Load a WebAssembly module | {ArrayBuffer\| TypedArray} |
1330
+ | ` format` | Description | Acceptable types for ` source` returned by ` load` |
1331
+ | ----------------------- | ----------------------------------------------------- | -------------------------------------------------- |
1332
+ | ` ' builtin' ` | Load a Node.js builtin module | {null} |
1333
+ | ` ' commonjs-typescript' ` | Load a Node.js CommonJS module with TypeScript syntax | {string\| ArrayBuffer\| TypedArray\| null\| undefined} |
1334
+ | ` ' commonjs' ` | Load a Node.js CommonJS module | {string\| ArrayBuffer\| TypedArray\| null\| undefined} |
1335
+ | ` ' json' ` | Load a JSON file | {string\| ArrayBuffer\| TypedArray} |
1336
+ | ` ' module-typescript' ` | Load an ES module with TypeScript syntax | {string\| ArrayBuffer\| TypedArray} |
1337
+ | ` ' module' ` | Load an ES module with TypeScript syntax | {string\| ArrayBuffer\| TypedArray} |
1338
+ | ` ' wasm' ` | Load a WebAssembly module | {ArrayBuffer\| TypedArray} |
1337
1339
1338
1340
The value of ` source` is ignored for type ` ' builtin' ` because currently it is
1339
1341
not possible to replace the value of a Node.js builtin (core) module.
You can’t perform that action at this time.
0 commit comments