Reputation: 790
Using the dynamic import()
syntax, I can load a module at runtime, e.g.
if (someCondition) await import('some-other-file');
Is it safe to assume that, once that promise resolves, some-other-file
has been fully parsed, and any synchronous side-effects it triggers will have happened already?
Upvotes: 2
Views: 57