philomena-dev / philomena

Next-generation imageboard
GNU Affero General Public License v3.0
84 stars 29 forks source link

Vite #240

Closed Meow closed 2 months ago

Meow commented 2 months ago

Switches from webpack + a butt-ton of webpack plugins and complicated config to using vite which seems to just be an "easy mode" for esbuild+rollup, which we intended to switch to anyway.

Drops a lot of dependencies which were either entirely unnecessary (webpack + webpack plugins) or seemingly unnecessary based on comparing output and test results before and after removing any given package. All tests should pass.

This also bumps typescript version to 5.4, and major versions of a few packages.

The size of package-lock.json was reduced by roughly 100KB (345KB -> 254.2KB).