Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fec): Make bundle analyzer optional feature #2001

Merged
merged 1 commit into from
May 2, 2024

Conversation

bastilian
Copy link
Member

The webpack prod config requires webpack-bundle-analyzer, this makes it optional and adds webpack-bundle-analyzer as a peer dependency in case apps do want to enable bundle analysing.

@bastilian bastilian changed the title fix: Make bundle analyzer optional feature fix(fec): Make bundle analyzer optional feature May 2, 2024
@@ -18,7 +18,7 @@ const { config: webpackConfig, plugins } = config({
plugins.push(...commonPlugins, ...externalPlugins);

const start = (env: { analyze?: string }): Configuration => {
if (env && env.analyze === 'true') {
if (BundleAnalyzerPlugin && env && env.analyze === 'true') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just kick it out entirely. Plugins can be extended from within fec.config.js anyway. Can you add a deprecation warning to this condition? So we can remove it in next major release?

@bastilian
Copy link
Member Author

@Hyperkid123 Since we intend to remove it, I removed it again from the dependencies and just wrapped the config in a try {} catch {} to not fail builds in apps that don't have the package.

@Hyperkid123 Hyperkid123 added the release Once merged it will trigger bugfix release label May 2, 2024
@Hyperkid123 Hyperkid123 merged commit 2c9bfdb into RedHatInsights:master May 2, 2024
1 check passed
@nacho-bot
Copy link
Collaborator

                      :soon::shipit::octocat:
     :bug:Shipit Squirrel has this release bugfix surrounded, be ready for a new version:beetle:

@nacho-bot
Copy link
Collaborator

     🌱 🌸 🌷 🌻 🌟 New version of package has been released 🌟 🌻 🌷 🌸 🌱

                The release is available on:

        :package:@redhat-cloud-services/frontend-components-config/v/6.0.13📦

             :boom:This feature is brought to you by probot🚀

@nacho-bot nacho-bot added the released Pr has been released label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Once merged it will trigger bugfix release released Pr has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants