Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

chore!: use pure ES modules #374

Merged
merged 1 commit into from
Dec 2, 2021
Merged

chore!: use pure ES modules #374

merged 1 commit into from
Dec 2, 2021

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Nov 29, 2021

Fixes #358

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 of require(). Consumers that use pure ES modules will not need to change anything.

@ehmicky ehmicky added the type: chore work needed to keep the product and development running smoothly label Nov 29, 2021
@ehmicky ehmicky self-assigned this Nov 29, 2021
@ehmicky ehmicky mentioned this pull request Nov 29, 2021
@@ -37,7 +39,7 @@
},
"devDependencies": {
"@netlify/eslint-config-node": "^3.3.9",
"ava": "^2.4.0",
"ava": "^3.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required for pure ES modules support.

JGAntunes
JGAntunes previously approved these changes Dec 2, 2021
@kodiakhq kodiakhq bot merged commit 08c3532 into main Dec 2, 2021
@ehmicky ehmicky deleted the chore/pure-esm branch December 2, 2021 15:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use pure ES modules
2 participants