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

emotion-babel-plugin.cjs.mjs contains non-statically analyzable dependencies warning in Parcel 2 #3124

Open
paolostyle opened this issue Nov 8, 2023 · 3 comments

Comments

@paolostyle
Copy link

Current behavior:

When the @emotion/babel-plugin is installed with Parcel 2, there is a console warning when running the app:

@parcel/package-manager: 
node_modules/@emotion/babel-plugin/dist/emotion-babel-plugin.cjs.mjs contains 
non-statically analyzable dependencies in its module graph. This causes Parcel 
to invalidate the cache on startup.

To reproduce:

https://codesandbox.io/p/sandbox/fervent-moore-lp3dn5 - just launch the sandbox and you should see it in the terminal

Expected behavior:

No such warning. I'm not sure if this is an issue with Parcel or with your babel plugin, but I would expect this should be fixed on your end.

Environment information:

  • react version: 18.2.0 but it's rather irrelevant
  • @emotion/babel-plugin version: 11.11.0
  • parcel version: 2.10.2
@Andarist
Copy link
Member

Andarist commented Nov 8, 2023

I might fix this in the coming weeks by finally migrating to development condition in package.json#exports

@paolostyle
Copy link
Author

If that's the only thing that needs adjusting I'm happy to contribute a PR.

@Andarist
Copy link
Member

Andarist commented Nov 8, 2023

Unfortunately, it is more complicated than that since there is also some other work that has to be done in preparation for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants