quarkusio / extensions

The source of https://quarkus.io/extensions
Apache License 2.0
6 stars 4 forks source link

Do not use babel loose mode, to resolve warning #1084

Closed holly-cummins closed 1 month ago

holly-cummins commented 1 month ago

Loose mode triggers a huge volume of warnings in the build logs; it also risks slightly broken semantics, potentially,

warning Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-transform-class-properties since the "loose" mode option was set to "true" for @babel/plugin-transform-private-property-in-object.
The "loose" option must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-transform-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
    ["@babel/plugin-transform-class-properties", { "loose": true }]
to the "plugins" section of your Babel config.
github-actions[bot] commented 1 month ago

🚀 PR Preview 071c03a997ab0de05f6d4c37759c6e35f6a70e86 has been successfully built and deployed to https://extensions-quarkus-pr-1084-preview.surge.sh