Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from vite to webpack #546

Merged
merged 5 commits into from
Mar 15, 2024
Merged

Switch from vite to webpack #546

merged 5 commits into from
Mar 15, 2024

Conversation

jbms
Copy link
Collaborator

@jbms jbms commented Mar 15, 2024

No description provided.

@jbms jbms marked this pull request as ready for review March 15, 2024 04:56
…edirect pages

Fixes #543, but breaks auth when
using the dev server.

That limitation will be addressed in a later commit by switching from vite to
webpack.
Instead just load data files using regular Node.js `fs` library.
This enables webworkers to perform asynchronous initialization before setting an
`onmessage` handler, and avoids potential bundler-dependent issues wih lost
messages.
@jbms jbms force-pushed the fix-bundling branch 5 times, most recently from 9c22c17 to 03572e0 Compare March 15, 2024 20:07
The main advantage of vite is that the dev-server avoids bundling, but this
leads to a lot of inconsistency between the dev-server and bundled version.
In particular, there did not seem to be any non-hacky way to override the path
of the oauth redirect html pages when using the dev-server.

Additionally, in practice the webpack dev-server is just as fast once the time
spent by the browser loading the non-bundled sources is taken into account.
@jbms jbms merged commit 64e3809 into master Mar 15, 2024
23 checks passed
@jbms jbms deleted the fix-bundling branch March 15, 2024 20:36
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