guides/esm-migration.md
.ts filesWhen migrating some of these projects away from the ts-node entry see @packages/scaffold-config example, it is somewhat difficult to make separate browser/node entries as the v8-snapshot tsconfig.json is using an older style of module resolution where the exports key inside a package's package.json is not well supported. Because of this, we need to find ways to bundle code that is needed internally in the browser vs in node without them being a part of the same bundle. This is a temporary work around until we are able to get every package being able to build as an ES Module, which as that point we can re assess how the Cypress binary is being built as well as v8-snapshots, and will allow us to reconfigure this packages to export content in a more proper fashion. We are currently doing something similar in the following packages:
@packages/scaffold-config@packages/socket@packages/telemetrymocha/sinon/chai to jest). See package README for more details as to why jest over vitestTBD: details will be clearer at the end of Phase 2
TBD: details will be clearer at the end of Phase 2