Skip to content

Conversation

@sunker
Copy link
Contributor

@sunker sunker commented Dec 18, 2025

What this PR does / why we need it:

This adds an addition script that allows plugins to bundle grafana/ui. Removing legacy code related to grafana/ui bundling from the templates is handled in this PR.

The most complicated part of this script is the modification of the bundler config - in particular the externals array as this code snippet was moved out of the webpack config a while back and the script needs to support both. The i18n script also needs to modify the externals array, so for that reason I've created a utility function for that.

Which issue(s) this PR fixes:

Fixes #2309

Special notes for your reviewer:

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @grafana/create-plugin@6.8.0-canary.2356.20816081919.0
# or 
yarn add @grafana/create-plugin@6.8.0-canary.2356.20816081919.0

@github-actions
Copy link
Contributor

github-actions bot commented Dec 18, 2025

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged and will trigger a new minor release.
NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.

@grafana-plugins-platform-bot grafana-plugins-platform-bot bot moved this from 📬 Triage to 🔬 In review in Plugins Platform / Grafana Community Dec 18, 2025
@sunker sunker added minor Increment the minor version when merged release Create a release when this pr is merged labels Jan 7, 2026
@sunker sunker force-pushed the create-plugin/bundle-grafana-ui-addition branch from 5417bd3 to ab084c4 Compare January 8, 2026 10:11
@sunker sunker marked this pull request as ready for review January 8, 2026 12:06
@sunker sunker requested review from a team as code owners January 8, 2026 12:06
@sunker sunker requested review from Copilot and removed request for Copilot January 8, 2026 12:06
@sunker sunker self-assigned this Jan 12, 2026
Copy link
Collaborator

@mckn mckn left a comment

Choose a reason for hiding this comment

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

Have not tested it but code looks solid! Really like the documentation provided with this.

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

Labels

minor Increment the minor version when merged release Create a release when this pr is merged

Projects

Status: 🔬 In review

Development

Successfully merging this pull request may close these issues.

Feat: Create add cmd script for bundling grafana/ui

2 participants