gohypergiant / standard-toolkit

The web "standard library" for the Accelint family of systems.
Apache License 2.0
0 stars 0 forks source link

chore: 🤖 convert DS build to tsup, add explicit vanilla export #65

Closed ArrayKnight closed 2 days ago

ArrayKnight commented 3 days ago

Swapped Rollup out for TSup

Notes:

brandonjpierce commented 2 days ago

I don't know the ramifications of this, but currently the dist/index.js file and dist/vanilla.js file are exporting the same things (with dist/index.js additional ones from same chunk file):

dist/vanilla.js Screenshot 2024-10-22 at 9 54 35 AM

dist/index.js Screenshot 2024-10-22 at 9 54 24 AM

brandonjpierce commented 2 days ago

I tried doing an experiment with running three separate tsup configs one for each of our intended outputs, but was unable to get it working (or more accurately, matching the current output of the dist to a degree). If we wanted to hyper optimize the bundle output we may need to slightly restructure the package structure a smidge.