See issue webpack/webpack#13792 for bug details.
Replication Steps
- Clone repo
npm ci
npm run build
- Check the output in
dist
as described in the issue linked above.
Example repository showing reproduction with imported files and optional chaining
JavaScriptMIT
See issue webpack/webpack#13792 for bug details.
npm ci
npm run build
dist
as described in the issue linked above.