restana
restana copied to clipboard
Reduce bundle size with SWC
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.