Skip to content

fix(webpack): skip building service worker in dev#38106

Merged
msyavuz merged 2 commits into
masterfrom
msyavuz/fix/service-worker
Feb 19, 2026
Merged

fix(webpack): skip building service worker in dev#38106
msyavuz merged 2 commits into
masterfrom
msyavuz/fix/service-worker

Conversation

@msyavuz
Copy link
Copy Markdown
Member

@msyavuz msyavuz commented Feb 19, 2026

SUMMARY

#36191 Introduced a service-worker file and the build output file in static directory. With this pr we ignore it in development mode to prevent webpack creating a build file everytime and prevents accidental committing of that generated file.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

  1. Run webpack dev server with npm run dev-server
  2. New service-worker.js file should not be created

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@bito-code-review
Copy link
Copy Markdown
Contributor

bito-code-review Bot commented Feb 19, 2026

Code Review Agent Run #eb8a6a

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 99f2b3b..99f2b3b
    • superset-frontend/webpack.config.js
  • Files skipped - 0
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@dosubot dosubot Bot added the change:frontend Requires changing the frontend label Feb 19, 2026
@codeant-ai-for-open-source
Copy link
Copy Markdown
Contributor

Sequence Diagram

Shows the change where the webpack configuration conditionally excludes the service-worker entry in development, so the dev server does not generate/overwrite the service-worker output file. This prevents accidental commits of generated files during development.

sequenceDiagram
    participant Dev as Developer / Dev Server
    participant Webpack as Webpack (config)
    participant Build as Build Output (static/)
    
    Dev->>Webpack: start dev-server (isDevMode = true)
    Webpack->>Webpack: evaluate entries (service-worker only added if not dev)
    alt Dev mode
        Webpack-->>Build: build without service-worker (no service-worker.js created)
    else Prod mode
        Webpack-->>Build: build including service-worker (service-worker.js generated)
    end
Loading

Generated by CodeAnt AI

Comment thread superset-frontend/webpack.config.js Outdated
@msyavuz msyavuz added the merge-if-green If approved and tests are green, please go ahead and merge it for me label Feb 19, 2026
@msyavuz msyavuz merged commit 3868821 into master Feb 19, 2026
73 checks passed
@msyavuz msyavuz deleted the msyavuz/fix/service-worker branch February 19, 2026 21:26
@bito-code-review
Copy link
Copy Markdown
Contributor

Bito Automatic Review Skipped – PR Already Merged

Bito scheduled an automatic review for this pull request, but the review was skipped because this PR was merged before the review could be run.
No action is needed if you didn't intend to review it. To get a review, you can type /review in a comment and save it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:frontend Requires changing the frontend merge-if-green If approved and tests are green, please go ahead and merge it for me size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants