Closed kungfooman closed 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
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.
Fixes: #79