You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By controlling the variable method, it can be determined that 2.12.0 will be hundreds of times slower than previous versions when building ts.
🐛 bug report
parcel watch is very slow while building ts while types being generated. It only slows on version 2.12.0, not 2.11.0 or lower. It only slows when "types": "dist/index.d.ts" configured. But even types not being configured, version 2.12.0 is slower than 2.11.0.
The below demo shows a very basic and simplified ts package.
I've created a repo to reproduce this problem https://github.com/iamyoki/try-parcel.
🐛 bug report
parcel watch
is very slow while building ts while types being generated. It only slows on version 2.12.0, not 2.11.0 or lower. It only slows when"types": "dist/index.d.ts"
configured. But even types not being configured, version 2.12.0 is slower than 2.11.0.The below demo shows a very basic and simplified ts package.
The below demo shows the same code and config but in version 2.11.0, very fast, working perfectly.
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
v2.12.0 should as fast as v2.11.0. Under 10ms per build (caching) should be good.
😯 Current Behavior
200-400ms per build.
💁 Possible Solution
I was able to determine that the build was slow due to the types generation.
Maybe "@parcel/transformer-typescript-types" ?
Maybe "@parcel/packager-ts"?
🔦 Context
Full comparison see https://github.com/iamyoki/try-parcel
Build time comparison
My env:
My results:
parcel watch
(with cache, hmr on),cmd+s
source file.💻 Code Sample
https://github.com/iamyoki/try-parcel
🌍 Your Environment
The text was updated successfully, but these errors were encountered: