Skip to content

feat: migrate to ES modules - #93

Open
43081j wants to merge 1 commit into
web-push-libs:mainfrom
43081j:jg/esm
Open

43081j wants to merge 1 commit into
web-push-libs:mainfrom
43081j:jg/esm

Conversation

@43081j

@43081j 43081j commented Oct 29, 2026

Copy link
Copy Markdown

This migrates the syntax to standard ES modules (import/export) and
reworks var to be let/const.

Publishing this means anyone on a Node older than 20, using CommonJS,
will not be able to require(...) it. Older Node can import it fine,
and all modern Node can require or import it either way.

This migrates the syntax to standard ES modules (`import`/`export`) and
reworks `var` to be `let`/`const`.

Publishing this means anyone on a Node older than 20, using CommonJS,
will not be able to `require(...)` it. Older Node can `import` it fine,
and all modern Node can `require` or `import` it either way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant