Skip to content

Commit b05d3d1

Browse files
Optimize Functions and Renderers for Webpack builds (#72683)
1 parent 13ec56d commit b05d3d1

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

+121
-72
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 & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +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-
import { savedSearch } from './saved_search';
54-
import { savedVisualization } from './saved_visualization';
5551
import { seriesStyle } from './seriesStyle';
5652
import { shape } from './shape';
5753
import { sort } from './sort';
@@ -110,10 +106,6 @@ export const functions = [
110106
revealImage,
111107
rounddate,
112108
rowCount,
113-
savedLens,
114-
savedMap,
115-
savedSearch,
116-
savedVisualization,
117109
seriesStyle,
118110
shape,
119111
sort,
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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 { savedSearch } from './saved_search';
10+
import { savedVisualization } from './saved_visualization';
11+
12+
export const functions = [savedLens, savedMap, savedSearch, savedVisualization];

0 commit comments

Comments
 (0)