FrankChen021 commented on code in PR #19815:
URL: https://github.com/apache/druid/pull/19815#discussion_r3914097821
##########
web-console/webpack.config.mjs:
##########
@@ -56,9 +56,14 @@ export default env => {
console.log(`Webpack running in ${mode} mode.`);
const plugins = [
+ new webpack.BannerPlugin({
+ banner: 'globalThis.global ??= globalThis;',
Review Comment:
[P2] Raw banner uses unsupported nullish-assignment syntax
Because raw is true, ??= is emitted verbatim and bypasses transpilation. The
browserslist only requires ES6 support, so an otherwise supported pre-ES2021
browser fails to parse the bundle before the global shim runs. Use syntax
compatible with the declared targets or narrow the browser targets accordingly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]