restana icon indicating copy to clipboard operation
restana copied to clipboard

Reduce bundle size with SWC

Open tripodsgames opened this issue 11 months ago • 2 comments

Hello, I conducted some tests using SWC to reduce the file sizes and potentially improve the performance of this library.

Changes:

  • Instead of publishing the "libs" folder, we now publish the "dist" folder.
  • The TypeScript file is copied as soon as the build is finished, also to the "dist" folder.
  • The examples and tests point to the "dist" folder and require the build to be done beforehand (npm run build).
  • Currently, it is configured to export the maps (perhaps it's better to deactivate).

I would like to discuss the changes.

tripodsgames avatar Aug 02 '23 17:08 tripodsgames