Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support extensibility for exports #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,19 @@ interface Import {
}
```

### `AbstractModuleSource.prototype.namedExports()`
### `AbstractModuleSource.prototype.exports()`

Returns a list of the explicit named exports of the module of the form `String[]`.
Returns a list of the explicit exports of the module of the form `Export[]` defined by:

```ts
interface Export {
export: string
}
```

For complete lexical analysis and detection of ambiguous bindings errors, further export binding information is required
including `import`, `local` and `from` data for reexports. Whether these should be added is currently under consideration
in https://github.com/tc39/proposal-esm-phase-imports/issues/20.

### `AbstractModuleSource.prototype.wildcardExports()`

Expand Down Expand Up @@ -276,6 +286,10 @@ The module objects defined by the [Module Expressions][] and
[Module Declarations][] proposals, should align with whatever SourceTextModule
phase object foundations are specified in this proposal.

Analysis metadata for module declaration imports and exports may exposed through an extension of
the existing source analysis. These possible analysis extensions are discussed in
https://github.com/tc39/proposal-esm-phase-imports/issues/19.

### Compartment Loaders

The [Compartments Proposal][] provides a way to dynamically create module
Expand Down
Loading
Loading