WeWeb has updated its stack (Node v18/ Webpack 5)

Hi everyone, this message is for custom component developers.

Since the last release, WeWeb has updated its build stack. We are now using Node v18 and Webpack 5. The documentation will be updated soon to reflect these changes.

These changes should not impact the way you build 90% of the time. However we advise you to do the following:
• Update your local node version
• Delete your node_modules, and do a full reinstall
• Build your component locally, and check that you have no error

Because your npm version will also be changed, you need to change the command the build (if you were using an old version previously)
npm run serve --port=4040 becomes npm run serve -- --port=4040
npm run build --name="component-name" --type="wwobject" becomes npm run build -- name="component-name" type="wwobject"

(you need extra – to pass args)

The changes allow us to support more libraries and are more aligned with how web projects are built nowadays (the web dev world changes a lot!).

If you encounter a build problem, feel free to contact us here so that we can help you.

PS: I know, this is still Webpack. We really want to go with Vite one day, but that will be a major change in our build stack and needs more work and reflexion.

4 Likes

We should delete package-lock.json as well, and republish an update, right?

Its not mandatory to republish, as previous build component will still work. Its to unsure that next version will work fine with the new builder

1 Like