Upgrade syntax to ES modules #60
Labels
Priority: Medium
Status: Abandoned
No activity, considered abandoned.
Status: Blocked or Postponed
On hold.
Type: Chore
Generic maintenance tasks.
Type: Dependencies
Change in project dependencies.
Type: Feature
New functionality. Also includes back-end improvements in performance, DX and code readability.
Version: Major
This will cause a major bump in the version number.
x-Bot: No Abandonment
This will never be marked abandoned by the status bot.
Type of feature
Describe the feature
Several dependencies are now ES-only imports, so it makes sense to upgrade Premail to use ES syntax as well.
This seems to be a pretty good guide:
https://electerious.medium.com/from-commonjs-to-es-modules-how-to-modernize-your-node-js-app-ad8cdd4fb662
Preferred solution
No response
Alternatives
No response
Related code
No response
Additional context
package.json
will need to be updated with entry points; there is debate whether ESM, transpiled or both should be included in the npm package:https://stackoverflow.com/a/52509974
https://survivejs.com/maintenance/packaging/anatomy/#entry-points
If the feature request is approved, would you be willing to submit a Pull Request?
The text was updated successfully, but these errors were encountered: