Remove accidental support for invalid JavaScript (#8077)
* Remove accidental support for invalid JavaScript Next.js inadvertently supported users mixing ES Modules and CommonJS due to a Babel bug that was fixed in v7. This removes the hack in favor of the new Babel `sourceType` feature. **This will result in broken code for users who relied on this non-standard conforming behavior.** * Fix comment * Toggle feature behind modern flag
Showing
Please
register
or
sign in
to comment