fix: replace webpack with vite - #2335
Conversation
|
Nice! The There seems to be a problem with the There's a similar error when trying to use the dist/ contents after I also note that during |
|
Does this mean that applications that want to an upgrade Origo version built with vite has to change its code, i.e. use "module" and "import". Not sure if that counts as not being backwards compatible or not, but it means that a new build is not a drop-in replacement. If it enables some new possibilities maybe that's the way to go to pave way for new upcoming cool features like chunking. |
Replaces webpack with vite. Most of the development experience should be the same (except a lot quicker), as both command to start development server and development server port is the same.
Most of the vite configuration is required to replicate the existing structure of the
buildfolder.A summary of the necessary changes:
publicfolder (those contents are automatically copied by vite during build), index.json is kept at the repository root as it's where people expect it to beNot done as part of this PR, could be added or done as a follow up: