Update build configs & minimum supported versions #224
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 withwebpack@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.