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

Update build configs & minimum supported versions #224

Merged
merged 6 commits into from Jan 31, 2021
Merged

Conversation

eemeli
Copy link
Owner

@eemeli eemeli commented Jan 29, 2021

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