Skip to content

Updates for Parcel plugins #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 21, 2023
Merged

Updates for Parcel plugins #94

merged 6 commits into from
Dec 21, 2023

Conversation

kungfooman
Copy link
Owner

@kungfooman kungfooman commented Dec 18, 2023

Fixes: #79

  • Publish v1 plugin
  • Fix v2 plugin
  • Fix README's (fleshing them out a little)

@kungfooman kungfooman self-assigned this Dec 18, 2023
@kungfooman kungfooman added the plugin Everything related to the plugins. label Dec 18, 2023
@kungfooman
Copy link
Owner Author

kungfooman commented Dec 20, 2023

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
Copy link
Owner Author

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.

@kungfooman kungfooman merged commit 327b0d4 into main Dec 21, 2023
@kungfooman kungfooman deleted the parcel-updates branch December 21, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin Everything related to the plugins.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refurbish Parcel plugins
1 participant