kungfooman / RuntimeTypeInspector.js

Checking JSDoc types at runtime for high-quality types - Trust is good, control is better.
MIT License
8 stars 0 forks source link

Updates for Parcel plugins #94

Closed kungfooman closed 9 months ago

kungfooman commented 9 months ago

Fixes: #79

kungfooman commented 9 months ago

Developing the Parcel v2 plugin so far has been the biggest challenge of all bundlers... adding an import through plugin seems to mess up some internal Parcel state, so I simply don't do that now. But that results in an non-imported function that just tries to access window, which is just... ugly. It's the only way I found so far though until this Parcel bug is fixed or circumvented in some other way.

And if that wasn't enough, Parcel also silently drops the types.js for typedef generation.

New release so far: npm install --save-dev @runtime-type-inspector/parcel-transformer@1.0.5

kungfooman commented 9 months ago

Final releases through this PR:

@runtime-type-inspector/plugin-parcel1@1.0.2 @runtime-type-inspector/parcel-transformer@1.0.6

To be frank, if you use Parcel and run into endless amounts of issues like I did here: switch to Rollup and save yourself the headache.