From fa870a8caf8307034c4ba9a8fd5a685a09ec285e Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Tue, 12 Nov 2024 17:39:49 -0800 Subject: [PATCH] add faq --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index b2b6a1d..806b8e2 100644 --- a/README.md +++ b/README.md @@ -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