Skip to content

Commit

Permalink
add faq
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Nov 13, 2024
1 parent c2b146a commit fa870a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ const instance = import.sync(x);

## FAQ

### Is Import Sync a module loading phase?

No, unlike `defer` and `source`, `import.sync` is not a phase, it is a new meta property like `import.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.

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

[Defer Import Eval]: https://github.com/tc39/proposal-defer-import-eval
Expand Down

0 comments on commit fa870a8

Please sign in to comment.