1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 16:19:12 -05:00

chore: update commonjs loading docs (#19904)

This commit is contained in:
sigmaSd 2023-07-22 04:48:06 +01:00 committed by GitHub
parent d6e086d681
commit 5a3dbe1a62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ are stable:
modules. It also sets supported globals.
```ts
import { createRequire } from "https://deno.land/std@$STD_VERSION/node/module.ts";
import { createRequire } from "node:module";
const require = createRequire(import.meta.url);
// Loads native module polyfill.