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

Fix formatting quirks + migrate from webpack to Rollup #117

Merged
merged 5 commits into from
Nov 25, 2024

Conversation

IoannisNezis
Copy link
Collaborator

@IoannisNezis IoannisNezis commented Nov 14, 2024

The new version of wasm-pack does not work well with webpack (the current bundler), so we now take Rollup instead. The wasm module must now be loaded explicitly in formatter/index.js. On the side, fix some quirks of the formatter regarding CONSTRUCT and FROM.

The new version of wasm-pack does not work well with webpack (the
current bundler) so i moved to rollup.This requires the wasm module to
be loaded "manually" and some changes in the way the format function is
made availiable in the qleverUI.js file.
@IoannisNezis
Copy link
Collaborator Author

Note that this PR only changes how the wasm module is loaded and made availible in js.
It does not change the user experience or how the docker image is build.

I switched from webpack to rollup since it worked for the new wasm binaries.
Also the execution for the bundle step went from 430ms to 78ms on my machine.

However the installed "sparql-language-server" is a newer version (0.1.12) that addresses some formatting issues:

before after
20241114_23h45m36s_grim 20241114_23h45m51s_grim
20241114_23h44m23s_grim 20241114_23h44m14s_grim

@IoannisNezis IoannisNezis self-assigned this Nov 19, 2024
@IoannisNezis IoannisNezis added enhancement New feature or request dependencies Pull requests that update a dependency file labels Nov 19, 2024
Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

Looks great, modulo the two rogue blank lines as discussed

@hannahbast hannahbast changed the title Migrate from webpack to rollup Fix formatting quirks + migrate from webpack to Rollup Nov 25, 2024
Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

Awesome!

@hannahbast hannahbast merged commit 24a43bf into ad-freiburg:master Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants