codeant-ai-for-open-source[bot] commented on PR #38106:
URL: https://github.com/apache/superset/pull/38106#issuecomment-3929640607

   ## **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.
   
   ```mermaid
   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
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


-- 
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]

Reply via email to