Skip to content

Conversation

@tobias-jarvelov
Copy link
Contributor

@tobias-jarvelov tobias-jarvelov commented Jan 5, 2026

Note: This PR is based on #9633


This change is Reviewable

@linear
Copy link

linear bot commented Jan 5, 2026

@socket-security
Copy link

socket-security bot commented Jan 5, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​redux@​4.2.1 ⏵ 5.0.19610010085100
Updatednpm/​@​vitejs/​plugin-react@​4.7.0 ⏵ 5.1.2100 +110010092100
Addedcargo/​block2@​0.5.110010093100100

View full report

@tobias-jarvelov tobias-jarvelov force-pushed the investigate-migration-from-cjs-to-esm-tb-4h-des-1739 branch from 797147e to 28fb4df Compare January 5, 2026 14:43
@tobias-jarvelov tobias-jarvelov marked this pull request as draft January 5, 2026 16:01
@tobias-jarvelov tobias-jarvelov force-pushed the investigate-migration-from-cjs-to-esm-tb-4h-des-1739 branch 2 times, most recently from 11608e1 to 2674c07 Compare January 9, 2026 14:45
@socket-security
Copy link

socket-security bot commented Jan 9, 2026

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

@tobias-jarvelov tobias-jarvelov changed the base branch from main to migrate-unit-tests-from-mocha-to-vitest January 9, 2026 14:50
@tobias-jarvelov tobias-jarvelov force-pushed the investigate-migration-from-cjs-to-esm-tb-4h-des-1739 branch 3 times, most recently from 0f3403d to efb3d0f Compare January 9, 2026 15:41
@tobias-jarvelov tobias-jarvelov marked this pull request as ready for review January 9, 2026 15:41
@tobias-jarvelov tobias-jarvelov requested a review from olmoh January 9, 2026 15:43
olmoh
olmoh previously approved these changes Jan 14, 2026
Copy link
Collaborator

@olmoh olmoh left a comment

Choose a reason for hiding this comment

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

Nice job, tested and works fine on macOS, LGTM.

@tobias-jarvelov tobias-jarvelov force-pushed the investigate-migration-from-cjs-to-esm-tb-4h-des-1739 branch from efb3d0f to 704ee07 Compare January 14, 2026 17:05
@tobias-jarvelov tobias-jarvelov force-pushed the migrate-unit-tests-from-mocha-to-vitest branch 4 times, most recently from a28a7ab to 9e8fc26 Compare January 16, 2026 14:10
Base automatically changed from migrate-unit-tests-from-mocha-to-vitest to main January 16, 2026 14:20
@tobias-jarvelov tobias-jarvelov dismissed olmoh’s stale review January 16, 2026 14:20

The base branch was changed.

After migrating the project to ESM the .mjs extension is used
for the built preload file, however we want to retain the .js
extension.
When the @vitejs/plugin-react package was updated it was no longer
compatible with the TS config's `moduleResolution` setting, as such the
TS config had to be updated.

`moduleResolution` has to changed to `bundler`, and because of that we
can no longer target `commonjs` as the output format. As such we also
had to bump the `module` config option to `es2022`.

With these changes in mind it made sense to also bump the TS target to
`es2022` from `es2021`. The emitted code built by typescript is now
a lot more modern than in previous builds.
This was previously done by the @vitejs/plugin-react package but must
now be done manually.
Node now has the ability to run typescript code natively.
Since version 22.19 node natively supports executing typescript files.
@tobias-jarvelov tobias-jarvelov force-pushed the investigate-migration-from-cjs-to-esm-tb-4h-des-1739 branch 2 times, most recently from 49bfc50 to 4266ac9 Compare January 16, 2026 15:08
@tobias-jarvelov tobias-jarvelov force-pushed the investigate-migration-from-cjs-to-esm-tb-4h-des-1739 branch from 4266ac9 to e10f941 Compare January 16, 2026 15:08
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.

3 participants