Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ export const defaultConfig: StorybookConfig = {
<meta name="eui-global" />
<meta name="emotion" />
<script>
window.__kbnPublicPath__ = { 'kbn-ui-shared-deps-npm': '', 'kbn-ui-shared-deps-src': '' };
const publicPath = window.top.location.pathname.replace(/index\.html$/, '');
// set the kbn public path values, we create a pointer on the topmost window path since this assignment will happen within an iframe
window.top.__kbnPublicPath__ = window.__kbnPublicPath__ = { 'kbn-ui-shared-deps-npm': publicPath, 'kbn-ui-shared-deps-src': publicPath, 'kbn-monaco': publicPath };
window.__kbnHardenPrototypes__ = false;
</script>
<script src="kbn-ui-shared-deps-npm.dll.js"></script>
Expand All @@ -235,6 +237,7 @@ export const defaultConfig: StorybookConfig = {
staticDirs: [
UiSharedDepsNpm.distDir,
UiSharedDepsSrc.distDir,
`${REPO_ROOT}/bazel-bin/src/platform/packages/shared/kbn-monaco/target_workers`,
{
from: `${REPO_ROOT}/src/platform/plugins/shared/kibana_react/public/assets`,
to: 'plugins/kibanaReact/assets',
Expand Down