ged-odoo / blockdom

A fast virtual dom library
MIT License
556 stars 25 forks source link

fix: `build:package` script #46

Open EastSun5566 opened 1 year ago

EastSun5566 commented 1 year ago

Hi @ged-odoo Thanks for the awesome library!

I've been using it with Vite and encountered the following error:

✘ [ERROR] Failed to resolve entry for package "blockdom". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan]

I checked the dist folder and noticed that the blockdom.iife.js and blockdom.es.js files are missing, which could be causing Vite to fail during resolution. Therefore, I think that the build:package script should also run the rollup -c. To address this, I've included it in and let tsc only generate types.