Skip to content

feat(build)!: migrate to ESM build & switch to Vitest for ESM support#537

Merged
ghiscoding merged 2 commits intonextfrom
chore/esm-rewrite
Apr 4, 2023
Merged

feat(build)!: migrate to ESM build & switch to Vitest for ESM support#537
ghiscoding merged 2 commits intonextfrom
chore/esm-rewrite

Conversation

@ghiscoding
Copy link
Copy Markdown
Member

@ghiscoding ghiscoding commented Apr 4, 2023

Description

Breaking Change: Migrate from CommonJS to ESM TypeScript build and migrate from Jest to Vitest since it has better ESM support

Motivation and Context

  • switch to ESM build for much smaller build output (instead of CommonJS which is currently used)
  • upgrade all npm dependencies to latest including deps that are ESM only deps (also remove skipped exclusions from Renovate)
  • migrate from Jest to Vitest since the later supports ESM by default (Jest seems far away from supporting ESM)
  • ref (done) Next Major 2.0 Release Roadmap #262

How Has This Been Tested?

Types of changes

  • Chore (change that has absolutely no effect on users)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@ghiscoding
Copy link
Copy Markdown
Member Author

will merge with failures so that we can keep a ref to troubleshoot Vitest Snapshot failures in opened Vitest issue

@ghiscoding ghiscoding merged commit 308fc2e into next Apr 4, 2023
@ghiscoding ghiscoding deleted the chore/esm-rewrite branch April 4, 2023 03:15
ghiscoding added a commit that referenced this pull request Apr 14, 2023
* feat(build)!: migrate to ESM build & switch to Vitest for ESM support (#537)
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.

1 participant