Skip to content

[TASK] switch to ecmascript modules#131

Merged
MyIgel merged 2 commits intofreifunk:mainfrom
Jeidnx:ecmascript
Jan 18, 2025
Merged

[TASK] switch to ecmascript modules#131
MyIgel merged 2 commits intofreifunk:mainfrom
Jeidnx:ecmascript

Conversation

@Jeidnx
Copy link
Collaborator

@Jeidnx Jeidnx commented Jan 17, 2025

Description

I have converted the project to use ecmascript modules. It was necessary to update the rbush and snabbdom dependencies to make this work.
There was also a small bug i fixed here. Not sure if this was introduced with my changes, or beforehand.

Motivation and Context

Keep the project up to date and stop vite from nagging about it

How Has This Been Tested?

So far i have only tested this in Firefox 134, but given the nature of the change i suspect that it wont have any impact. I have clicked through every menu and didn't observe any change in behavior compared to the previous version.

Screenshots/links:

https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated

Checklist:

  • My code follows the code style of this project. (CI will test it anyway and also needs approval)
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.

Jeidnx added 2 commits January 17, 2025 20:32
The `attrs` parameter doesn't seem to work anymore, `props` does.
Also using the return type of patch is generally not needed, since patch
mutates the node itself
@MyIgel MyIgel merged commit 0051309 into freifunk:main Jan 18, 2025
2 checks passed
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.

2 participants