Skip to content

Update build configs & minimum supported versions - #224

Merged
eemeli merged 6 commits into
masterfrom
es-browsers
Jan 31, 2021
Merged

Update build configs & minimum supported versions#224
eemeli merged 6 commits into
masterfrom
es-browsers

Conversation

@eemeli

@eemeli eemeli commented Jan 29, 2021

Copy link
Copy Markdown
Owner

The browser build is here (again) expressed as pure ES modules, following the suggestion made by @jedwards1211 in #208 (comment). Together with #223, this PR fixes #208 (again).

In related changes, the minimum supported versions are updated, moving from Node.js 6.5 to Node.js 10.0 (currently in maintenance), and dropping IE 11 support. The latter in particular reduces the browser build size quite a bit. The package.json "exports" config is updated, providing better compatibility with webpack@5 and other bundlers that support "exports". This also means that support for Node.js 13.0 and 13.1 is dropped (v13 EOL was in June 2020), as they didn't yet support this form.

The Rollup configs are also tuned a bit to preserve the module file structure & otherwise improve tree shaking.

Users that need to use this library in unsupported environments should themselves transpile it as necessary.

Those will get picked up by webpack@5 and possibly others. Dropping the
array fallback also means losing compatibility with Node.js 13.0 and
13.1, which fell out of maintenance support in June 2020.
BREAKING CHANGE: Users of older Node.js versions will need to transpile
this library, or update their environment to a supported Node.js
version.
@eemeli
eemeli merged commit 191270a into master Jan 31, 2021
@eemeli
eemeli deleted the es-browsers branch January 31, 2021 19:07
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.

Failed to use yaml lib with webpack 5

1 participant