mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 13:44:47 +00:00
chore: update commonjs loading docs (#19904)
This commit is contained in:
parent
d6e086d681
commit
5a3dbe1a62
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ are stable:
|
||||||
modules. It also sets supported globals.
|
modules. It also sets supported globals.
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { createRequire } from "https://deno.land/std@$STD_VERSION/node/module.ts";
|
import { createRequire } from "node:module";
|
||||||
|
|
||||||
const require = createRequire(import.meta.url);
|
const require = createRequire(import.meta.url);
|
||||||
// Loads native module polyfill.
|
// Loads native module polyfill.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue