[storybook] Add static path to @kbn/monaco web workers#225383
[storybook] Add static path to @kbn/monaco web workers#225383clintandrewhall merged 5 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/appex-sharedux (Team:SharedUX) |
| to: 'plugins/kibanaReact/assets', | ||
| }, | ||
| { | ||
| from: `${REPO_ROOT}/bazel-bin/src/platform/packages/shared/kbn-monaco/target_workers`, |
There was a problem hiding this comment.
How close are we to finishing that work? The PR has been open for quite some time, and has (and will continue to have) merge conflicts. I'd just as soon merge this so we know we need to fix it with moon... the PR has changes to @kbn/monaco, so it might make sense to have the fix in that PR, as well?
@eokoneyo has more context as to the value of this story, and it's his issue. If we wait, we should update the bug?
There was a problem hiding this comment.
The other shared deps packages are using Bazel as well, so I don't think it's much of an issue since the others will need updating.
Thanks, I may have broken something with my last "tweak". I'll take a look. |
|
@elasticmachine merge upstream |
I made a slight adjustment, and the issue with loading the worker in the build preview has been resolved |
|
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
|
|
Starting backport for target branches: 9.1 https://github.com/elastic/kibana/actions/runs/16803994229 |
|
Starting backport for target branches: 9.1 https://github.com/elastic/kibana/actions/runs/16803994083 |
(cherry picked from commit fd6470f)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
(cherry picked from commit fd6470f)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
#230976) # Backport This will backport the following commits from `main` to `9.1`: - [[storybook] Add static path to @kbn/monaco web workers (#225383)](#225383) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Clint Andrew Hall","email":"clint.hall@elastic.co"},"sourceCommit":{"committedDate":"2025-07-01T02:11:57Z","message":"[storybook] Add static path to @kbn/monaco web workers (#225383)","sha":"fd6470f6d01b83d6cb809e88e6bd5ae5080d44b0","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["review","loe:small","release_note:skip","impact:low","Feature:Storybook","Team:SharedUX","ci:build-storybooks","backport:version","v9.2.0","v9.1.1"],"title":"[storybook] Add static path to @kbn/monaco web workers","number":225383,"url":"https://github.com/elastic/kibana/pull/225383","mergeCommit":{"message":"[storybook] Add static path to @kbn/monaco web workers (#225383)","sha":"fd6470f6d01b83d6cb809e88e6bd5ae5080d44b0"}},"sourceBranch":"main","suggestedTargetBranches":["9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225383","number":225383,"mergeCommit":{"message":"[storybook] Add static path to @kbn/monaco web workers (#225383)","sha":"fd6470f6d01b83d6cb809e88e6bd5ae5080d44b0"}},{"branch":"9.1","label":"v9.1.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>

Summary
The built web workers for
@kbn/monacowere not available to the Storybook instance. This PR fixes that by mapping a static directory to the builtbazel-binworkers directory.Testing
[storybook url]?path=/story/code-editor-code-editor--json-support."verand look for an autocomplete.yarn storybook shared_uxyarn storybook shared_ux --sitenpx serve built_assets/storybook/shared_ux