-
Notifications
You must be signed in to change notification settings - Fork 81
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
Latest release (module: "src/inert") broke our builds #136
Comments
This also appears to have broken our bundles on IE11 because the source was no longer being passed through Babel. |
ugh... I didn't realize webpack had this "feature". I didn't think it was a breaking behavior because my assumption was that most folks were using the version that In my opinion, it feels a bit weird to ship a version that uses module syntax but transpiles everything else to ES5... As a short term fix, y'all could pin the dependency to the previous version or try the |
cc @aomarks |
Yeah we created some webpack aliases when we discovered this. You weren't the only package to release this feature last week. Feel like this should've been a webpack v5 feature but maybe I don't quite understand it enough. Might be meant for server side rendering instead of client-side? bowser$: 'bowser/bundled',
'wicg-inert$': 'wicg-inert/dist/inert' Thanks for the |
So because this broke folks I was thinking of shipping a new minor version that removes the module field and basically puts everything back to the way it was. Then shipping a v3 that has the module field. @timbomckay @bcutler-work @aomarks what do y'all think? |
twitter discussion for context: https://twitter.com/rob_dodson/status/1172302699204755458 |
Yeah this topic has been a discussion for our team recently. Some in the camp of packages should ship ES5 and excluding
Alternatively, the In regards to reverting and releasing a new major, I don't think it really matters to us. I don't think we're going to remove our alias unless it's in favor of the You also released this as a minor/feature update, which makes sense and we've discussed changing our dependencies from So I don't know, just try to document/inform wherever possible. |
Just released a patch version which updates the module field to point at a transpiled version. I'll do a follow up major release tomorrow. |
Ping on the major release that's not transpiled? |
Just released 3.0 |
Thank you Rob! |
This version has a "module" field that resolves to ES2015 code (uses native ES2015 classes instead of transpiled). See WICG/inert#136 for more context.
This version has a "module" field that resolves to ES2015 code (uses native ES2015 classes instead of transpiled). See WICG/inert#136 for more context.
#135 Broke our builds because it changed which file our webpack pulled in. This probably should've been a breaking change as it took us 2 days to track down why our builds were breaking.
You should put this in the documentation so people using this in webpack know what to do.
The text was updated successfully, but these errors were encountered: