Skip to content

Commit

Permalink
Merge branch 'main' into stage1
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Dec 5, 2024
2 parents f6dec45 + 174f49c commit db2774c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ Just like with dynamic import, with a synchronous import, it's possible to check
For example, checking if host builtins are available:

```js
let fs;
try {
let fs = import.sync('node:fs');
fs = import.sync('node:fs');
} catch {}

if (fs) {
Expand Down Expand Up @@ -127,9 +128,8 @@ No, unlike `defer` and `source`, `import.sync` is not a phase, it is a new meta

No syntax is supported for `import sync mod from 'mod'`.

To guarantee that a graph is sync upfront, instead see see the [Module Sync Assert](https://github.com/tc39/proposal-module-sync-assert) proposal, which may provide an import attribute or otherwise.
To guarantee that a graph is sync upfront, instead see the [Module Sync Assert](https://github.com/tc39/proposal-module-sync-assert) proposal, which may provide an import attribute or otherwise.

_Post an [issue](https://github.com/guybedford/proposal-import-sync/issues)._

[Defer Import Eval]: https://github.com/tc39/proposal-defer-import-eval
[ESM Phase Imports]: https://github.com/tc39/proposal-esm-phase-imports

0 comments on commit db2774c

Please sign in to comment.