Skip to content

Commit 2b3dc7f

Browse files
[7.x] Optimize Functions and Renderers for Webpack builds (#72683) (#72723)
# Conflicts: # x-pack/plugins/canvas/canvas_plugin_src/functions/common/index.ts
1 parent 2d9e5c2 commit 2b3dc7f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+122
-74
lines changed

x-pack/plugins/canvas/canvas_plugin_src/functions/browser/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
*/
66

77
import { functions as commonFunctions } from '../common';
8+
import { functions as externalFunctions } from '../external';
89
import { location } from './location';
910
import { markdown } from './markdown';
1011
import { urlparam } from './urlparam';
1112

12-
export const functions = [location, markdown, urlparam, ...commonFunctions];
13+
export const functions = [location, markdown, urlparam, ...commonFunctions, ...externalFunctions];

x-pack/plugins/canvas/canvas_plugin_src/functions/common/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ import { rounddate } from './rounddate';
4848
import { rowCount } from './rowCount';
4949
import { repeatImage } from './repeatImage';
5050
import { revealImage } from './revealImage';
51-
import { savedLens } from './saved_lens';
52-
import { savedMap } from './saved_map';
53-
// TODO: elastic/kibana#44822 Disabling pending filters work
54-
// import { savedSearch } from './saved_search';
55-
import { savedVisualization } from './saved_visualization';
5651
import { seriesStyle } from './seriesStyle';
5752
import { shape } from './shape';
5853
import { sort } from './sort';
@@ -111,11 +106,6 @@ export const functions = [
111106
revealImage,
112107
rounddate,
113108
rowCount,
114-
savedLens,
115-
savedMap,
116-
// TODO: elastic/kibana#44822 Disabling pending filters work
117-
// savedSearch,
118-
savedVisualization,
119109
seriesStyle,
120110
shape,
121111
sort,
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License;
4+
* you may not use this file except in compliance with the Elastic License.
5+
*/
6+
7+
import { savedLens } from './saved_lens';
8+
import { savedMap } from './saved_map';
9+
import { savedVisualization } from './saved_visualization';
10+
// TODO: elastic/kibana#44822 Disabling pending filters work
11+
// import { savedSearch } from './saved_search';
12+
13+
export const functions = [savedLens, savedMap, savedVisualization];

0 commit comments

Comments
 (0)