tc39 / proposal-source-phase-imports

Proposal to enable importing modules at the source phase
https://tc39.es/proposal-source-phase-imports/
MIT License
129 stars 9 forks source link

"Source" is a little confusing #57

Open arcanis opened 11 months ago

arcanis commented 11 months ago

It's only after reading the spec that I understood the value accessed when using the source keyword isn't the module's source file content, but rather the module object. Is the name source definitive?

guybedford commented 11 months ago

There will be two separate module objects - module source objects, and module instance objects. The reason for this is that one source can have multiple instances.