openvsx icon indicating copy to clipboard operation
openvsx copied to clipboard

Migrate to vite for webui

Open netomi opened this issue 1 month ago • 2 comments

This PR is intended to migrate the existing frontend build system to use vite.

Changes:

  • use modern jsx transform avoiding the need to import React
  • use vite for building and running a dev server
  • update tsconfig
  • update docker build and compose configs

netomi avatar Nov 10 '25 09:11 netomi

To run a dev server you can just enter yarn watch:default

Running yarn run build will build the library in /lib which is needed for publishing to npm and building open-vsx.org.

The default server can be built using yarn build:default and then executed with yarn start:default.

I did not touch the existing tsconfig as much as possible, but it could be further improved.

Vite does not use tsc for building but rather uses esbuild, so the tsconfig for building the app has an explicit noEmit: true to get warning but not emit js files as this would be useless.

netomi avatar Nov 18 '25 10:11 netomi

any objection to merge that PR?

That would make frontend development less painful.

netomi avatar Nov 26 '25 20:11 netomi