-
Notifications
You must be signed in to change notification settings - Fork 143
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
error instead of warn for missing exports #2157
base: stable
Are you sure you want to change the base?
Conversation
85f2a3d
to
a9591be
Compare
Anyone? |
sorrry for the delay -- our focus hasn't been on webpack lately. Looks like CI needs to be re-ran, but the logs are old enough where I can't just click "re-run". Would you be willing to rebase this PR? sorry! |
32dd502
to
7f7c0fb
Compare
ok.
Since some time has passed, re-looking into |
7f7c0fb
to
263bfd4
Compare
Yeh that works, switched from |
How should this be framed in the changelog?
|
I don't really know. There's some info here, like that it's already true in mjs. I can see why it would be a breaking change, but, then again if it breaks for somebody then something was already broken they just didn't know it. If they were in runtime, and you weren't actively monitoring in (Sentry for example) you'd never know. Yeh anyway, I don't necessarily need this to go in, just as a developer it feels like no brainer. Can I leave it to you all to decide whether you want it or not? Also, what does Vite do? |
Vite doesn't let you import things that don't exist 🎉 |
Currently, this:
will cause Webpack to warn if
foo
does not exist, but this is easily missed. Meaning its possible to ship broken code.This PR configures
strictExportPresence
to error instead of warn.But this is actually deprecated in favour of
exportsPresence
, which I did try but it wasn't available on the current version.Also note it will be true by default in v6 of webpack anyway.
Reading:
Regarding tests, since I'm not familiar with the embroider repo I found it hard to know where they should go. I saw some that seemed like an appropriate place, but I'll need help tbh.