-
Notifications
You must be signed in to change notification settings - Fork 6
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
chore!: use pure ES modules #177
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ehmicky
added
the
type: chore
work needed to keep the product and development running smoothly
label
Dec 7, 2021
ehmicky
commented
Dec 7, 2021
@@ -60,7 +63,7 @@ | |||
"@commitlint/cli": "^15.0.0", | |||
"@commitlint/config-conventional": "^15.0.0", | |||
"@netlify/eslint-config-node": "^4.0.0", | |||
"ava": "^2.4.0", | |||
"ava": "^3.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed to support pure ES modules.
lukasholzer
previously approved these changes
Dec 9, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ehmicky
force-pushed
the
chore/pure-esm
branch
2 times, most recently
from
December 9, 2021 14:24
6d56cda
to
7ea3db1
Compare
Co-authored-by: Renovate Bot <bot@renovateapp.com>
ehmicky
force-pushed
the
chore/pure-esm
branch
from
December 9, 2021 14:25
7ea3db1
to
0c56684
Compare
Thanks! Could you please re-review it? There was a merge conflict. |
lukasholzer
approved these changes
Dec 9, 2021
Merged
This pull request was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of https://github.com/netlify/team-dev/issues/36
This switches from CommonJS to pure ES modules.
This is a breaking change, since consumers that still use CommonJS will need to use a dynamic
import()
to load this module instead ofrequire()
. Consumers that use pure ES modules will not need to change anything.However, in practice, this repository is not loaded programmatically but as a GitHub action.
esbuild
is bundling this to CommonJS. So we should be able to make a minor release, but let's go with a major release just to be safe.