-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve both namespace and ES module semantics
Introduce a manual 'namespace' by assigning the other exported value objects to the `lookup` function, thereby allowing it to be called directly, e.g. `io(...)`, or used to access the other values, e.g. `io.connect(...)`. Maintain the other existing exports so that the nice new ES module interface is still useful in its own right.
- Loading branch information
1 parent
615e062
commit a80f05b
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * as io from "./index.js"; | ||
export { io as default } from "./index"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters