Skip to content

Commit

Permalink
[7.x] share tslib across bundles (#79915) (#79929)
Browse files Browse the repository at this point in the history
Co-authored-by: spalger <[email protected]>

Co-authored-by: spalger <[email protected]>
  • Loading branch information
Spencer and spalger authored Oct 7, 2020
1 parent ab26307 commit 8472a86
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/kbn-ui-shared-deps/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,8 @@ export const ElasticEuiChartsTheme = require('@elastic/eui/dist/eui_charts_theme
export const Lodash = require('lodash');
export const LodashFp = require('lodash/fp');

// runtime deps which don't need to be copied across all bundles
export const TsLib = require('tslib');

import * as Theme from './theme.ts';
export { Theme };
5 changes: 5 additions & 0 deletions packages/kbn-ui-shared-deps/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,10 @@ exports.externals = {
'@elastic/eui/dist/eui_theme_dark.json': '__kbnSharedDeps__.Theme.euiDarkVars',
lodash: '__kbnSharedDeps__.Lodash',
'lodash/fp': '__kbnSharedDeps__.LodashFp',

/**
* runtime deps which don't need to be copied across all bundles
*/
tslib: '__kbnSharedDeps__.TsLib',
};
exports.publicPathLoader = require.resolve('./public_path_loader');
1 change: 1 addition & 0 deletions packages/kbn-ui-shared-deps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"rxjs": "^6.5.5",
"styled-components": "^5.1.0",
"symbol-observable": "^1.2.0",
"tslib": "^2.0.0",
"whatwg-fetch": "^3.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 8472a86

Please sign in to comment.