| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b362339 commit 93d19ec
1 file 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. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments