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. 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.