You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result code is not using imports correctly, so optionally chained property is used from global context and not imported module, which was never defined (Uncaught ReferenceError: XXX is not defined)
(()=>{const$995a17657784c9af$export$19a494d0e5fb84be="random";fetch("something").then((data)=>{console.log(data.reasons?.[RANDOM_REASON]);// <--- RANDOM_REASON never defined});})();
馃悰 bug report
2.6.0 regression (works fine in 2.4.0); ??
result code is not using imports correctly, so optionally chained property is used from global context and not imported module, which was never defined (Uncaught ReferenceError: XXX is not defined)
馃帥 Configuration (.babelrc, package.json, cli command)
src/constants.js
src/index.js
parcel build index.js --no-optimize
馃 Expected Behavior
v 2.4.0 output:
馃拋 Possible Solution
guess its related to a recent fix (#8121) associated with:
#7937
#8102
馃敠 Context
馃捇 Code Sample
馃實 Your Environment
full example (branch:
issue-2.6.0-chaining
): https://github.com/ivanStraltsou/parcel2-issue/blob/issue-2.6.0-chaining/src/index.jsThe text was updated successfully, but these errors were encountered: