Commit Graph

4 Commits (f9122c522777fa9a8025b150eb6ebc6e92348cbf)

Author SHA1 Message Date
Cogent Apps 25fd17a554 extend browser compatability 2023-07-09 19:24:17 +00:00
ZauberNerd 0701303563
Use comlink without vite-plugin-comlink
For some reason the vite-plugin-comlink doesn't seem to work in this
constellation.
I tried to reproduce in a new vite project and there it did work.
But also, the plugin does some horrible magic by replacing a
non-existant constructor `ComLinkWorker()` with the `wrap()` method
and then the only real benefit is, that we wouldn't need to write the
`expose()` method in the worker. So for that reason I'm removing the
plugin and using the comlink package directly.
2023-07-08 15:42:43 +02:00
ZauberNerd 4b91a1972b
Replace CRA proxy config with vite's proxy config 2023-07-08 15:41:28 +02:00
ZauberNerd a3da33d824
Replace create-react-app with vite
create-react-app seems to struggle a bit [1] and many folks are
recommending vite as an alternative, as that project is more active.
For me the reason to switch to vite is to reduce dependencies and speed
up the build process.

Replacing create-react-app with vite reduce the number of dependencies
from 1762 to 444.

I was also quite surprised, by how small the actual diff in this commit
is. From that perspective there is almost no discernible difference
between the two tools.

[1]: https://github.com/reactjs/react.dev/pull/5487#issuecomment-1409720741
2023-07-07 22:13:33 +02:00