Skip to content
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

Configuring parcel with Compiled causes an invalid cache #1138

Open
JakeLane opened this issue Mar 8, 2022 · 0 comments
Open

Configuring parcel with Compiled causes an invalid cache #1138

JakeLane opened this issue Mar 8, 2022 · 0 comments
Labels
bug 🐛 Something isn't working developer experience 🏖️ It's something that improves the developer experience

Comments

@JakeLane
Copy link
Collaborator

JakeLane commented Mar 8, 2022

Describe the bug
When changing the configuration for the @compiled/parcel-transformer plugin, there is emergent behaviour related to the files processed by babel. This happens because we read from disk and parcel does not have context in the cache for these changes.

To Reproduce
Steps to reproduce the behaviour:

  1. Configure a parcel project with @compiled/parcel-transformer
  2. Change babel behaviour in babel.config.json
  3. The parcel cache will now be invalid

Expected behaviour
When the babel configuration is changed, the parcel transformer should mark relevant files as stale

Additional context
This babel PR allows adding file dependencies which should allow us to work around this problem babel/babel#14065

@JakeLane JakeLane added bug 🐛 Something isn't working developer experience 🏖️ It's something that improves the developer experience labels Mar 8, 2022
@JakeLane JakeLane changed the title Configuring parcel with Compiled causes cache poisioning Configuring parcel with Compiled causes an invalid cache Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working developer experience 🏖️ It's something that improves the developer experience
Projects
None yet
Development

No branches or pull requests

1 participant