Skip to content

Commit

Permalink
Revert "remove kibanaUtils bundle"
Browse files Browse the repository at this point in the history
This reverts commit a64b2a7.
  • Loading branch information
spalger committed Apr 8, 2020
1 parent 3a2b7dc commit 7f3b819
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/kbn-optimizer/src/worker/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const BABEL_PRESET_PATH = require.resolve('@kbn/babel-preset/webpack_preset');
const STATIC_BUNDLE_PLUGINS = [
{ id: 'data', dirname: 'data' },
{ id: 'kibanaReact', dirname: 'kibana_react' },
{ id: 'kibanaUtils', dirname: 'kibana_utils' },
{ id: 'esUiShared', dirname: 'es_ui_shared' },
];

Expand Down
1 change: 1 addition & 0 deletions src/legacy/ui/ui_render/bootstrap/template.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ if (window.__kbnStrictCsp__ && window.__kbnCspNotEnforced__) {
{{/each}}
'{{regularBundlePath}}/commons.bundle.js',
'{{regularBundlePath}}/plugin/data/data.plugin.js',
'{{regularBundlePath}}/plugin/kibanaUtils/kibanaUtils.plugin.js',
'{{regularBundlePath}}/plugin/esUiShared/esUiShared.plugin.js',
'{{regularBundlePath}}/plugin/kibanaReact/kibanaReact.plugin.js'
], function () {
Expand Down
5 changes: 5 additions & 0 deletions src/plugins/kibana_utils/kibana.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"id": "kibanaUtils",
"version": "kibana",
"ui": true
}
8 changes: 8 additions & 0 deletions src/plugins/kibana_utils/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,11 @@ export {
} from './state_sync';
export { removeQueryParam, redirectWhenMissing, ensureDefaultIndexPattern } from './history';
export { applyDiff } from './state_management/utils/diff_object';

/** dummy plugin, we just want kibanaUtils to have its own bundle */
export function plugin() {
return new (class KibanaUtilsPlugin {
setup() {}
start() {}
})();
}

0 comments on commit 7f3b819

Please sign in to comment.