Skip to content

Commit

Permalink
Adds top level Island export
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jan 27, 2023
1 parent 3ec6ed6 commit dbd8f69
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions is-land.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ if("customElements" in window) {
window.Island = Island;
}

export const component = Island;
export {
Island,
Island as component, // Backwards compat only: recommend `Island` export
};

export const ready = Island.ready;
export const ready = Island.ready; // Backwards compat only: recommend `Island` export

0 comments on commit dbd8f69

Please sign in to comment.