-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kbn/ui-shared-deps] expand and split (#62364)
* [kbn/ui-shared-deps] expand and split * add two import styles for eui/react-dom that are new Co-authored-by: spalger <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
325c5ce
commit 96a8283
Showing
15 changed files
with
116 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,17 +20,14 @@ | |
const Path = require('path'); | ||
|
||
exports.distDir = Path.resolve(__dirname, 'target'); | ||
exports.distFilename = 'kbn-ui-shared-deps.js'; | ||
exports.jsDepFilenames = ['[email protected]']; | ||
exports.jsFilename = 'kbn-ui-shared-deps.js'; | ||
exports.baseCssDistFilename = 'kbn-ui-shared-deps.css'; | ||
exports.lightCssDistFilename = 'kbn-ui-shared-deps.light.css'; | ||
exports.darkCssDistFilename = 'kbn-ui-shared-deps.dark.css'; | ||
exports.externals = { | ||
// stateful deps | ||
angular: '__kbnSharedDeps__.Angular', | ||
'@elastic/charts': '__kbnSharedDeps__.ElasticCharts', | ||
'@elastic/eui': '__kbnSharedDeps__.ElasticEui', | ||
'@elastic/eui/lib/services': '__kbnSharedDeps__.ElasticEuiLibServices', | ||
'@elastic/eui/dist/eui_theme_light.json': '__kbnSharedDeps__.ElasticEuiLightTheme', | ||
'@elastic/eui/dist/eui_theme_dark.json': '__kbnSharedDeps__.ElasticEuiDarkTheme', | ||
'@kbn/i18n': '__kbnSharedDeps__.KbnI18n', | ||
'@kbn/i18n/angular': '__kbnSharedDeps__.KbnI18nAngular', | ||
'@kbn/i18n/react': '__kbnSharedDeps__.KbnI18nReact', | ||
|
@@ -39,10 +36,31 @@ exports.externals = { | |
'moment-timezone': '__kbnSharedDeps__.MomentTimezone', | ||
react: '__kbnSharedDeps__.React', | ||
'react-dom': '__kbnSharedDeps__.ReactDom', | ||
'react-dom/server': '__kbnSharedDeps__.ReactDomServer', | ||
'react-intl': '__kbnSharedDeps__.ReactIntl', | ||
'react-router': '__kbnSharedDeps__.ReactRouter', | ||
'react-router-dom': '__kbnSharedDeps__.ReactRouterDom', | ||
'@kbn/ui-shared-deps/monaco': '__kbnSharedDeps__.Monaco', | ||
// this is how plugins/consumers from npm load monaco | ||
'monaco-editor/esm/vs/editor/editor.api': '__kbnSharedDeps__.MonacoBare', | ||
|
||
/** | ||
* big deps which are locked to a single version | ||
*/ | ||
rxjs: '__kbnSharedDeps__.Rxjs', | ||
'rxjs/operators': '__kbnSharedDeps__.RxjsOperators', | ||
'@elastic/charts': '__kbnSharedDeps__.ElasticCharts', | ||
'@elastic/eui': '__kbnSharedDeps__.ElasticEui', | ||
'@elastic/eui/lib/services': '__kbnSharedDeps__.ElasticEuiLibServices', | ||
'@elastic/eui/lib/services/format': '__kbnSharedDeps__.ElasticEuiLibServicesFormat', | ||
'@elastic/eui/dist/eui_charts_theme': '__kbnSharedDeps__.ElasticEuiChartsTheme', | ||
'@elastic/eui/dist/eui_theme_light.json': '__kbnSharedDeps__.ElasticEuiLightTheme', | ||
'@elastic/eui/dist/eui_theme_dark.json': '__kbnSharedDeps__.ElasticEuiDarkTheme', | ||
|
||
/** | ||
* massive deps that we should really get rid of or reduce in size substantially | ||
*/ | ||
elasticsearch: '__kbnSharedDeps__.ElasticsearchBrowser', | ||
'elasticsearch-browser': '__kbnSharedDeps__.ElasticsearchBrowser', | ||
'elasticsearch-browser/elasticsearch': '__kbnSharedDeps__.ElasticsearchBrowser', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,41 @@ | ||
{ | ||
"name": "@kbn/ui-shared-deps", | ||
"version": "1.0.0", | ||
"license": "Apache-2.0", | ||
"private": true, | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"build": "node scripts/build", | ||
"kbn:bootstrap": "node scripts/build --dev", | ||
"kbn:watch": "node scripts/build --watch" | ||
}, | ||
"devDependencies": { | ||
"abortcontroller-polyfill": "^1.4.0", | ||
"@elastic/eui": "21.0.1", | ||
"@kbn/babel-preset": "1.0.0", | ||
"dependencies": { | ||
"@elastic/charts": "^18.1.1", | ||
"@kbn/dev-utils": "1.0.0", | ||
"@elastic/eui": "21.0.1", | ||
"@kbn/i18n": "1.0.0", | ||
"@yarnpkg/lockfile": "^1.1.0", | ||
"abortcontroller-polyfill": "^1.4.0", | ||
"angular": "^1.7.9", | ||
"core-js": "^3.2.1", | ||
"css-loader": "^3.4.2", | ||
"custom-event-polyfill": "^0.3.0", | ||
"del": "^5.1.0", | ||
"elasticsearch-browser": "^16.7.0", | ||
"jquery": "^3.4.1", | ||
"mini-css-extract-plugin": "0.8.0", | ||
"moment": "^2.24.0", | ||
"moment-timezone": "^0.5.27", | ||
"monaco-editor": "~0.17.0", | ||
"react": "^16.12.0", | ||
"react-dom": "^16.12.0", | ||
"react-intl": "^2.8.0", | ||
"react": "^16.12.0", | ||
"read-pkg": "^5.2.0", | ||
"react-router": "^5.1.2", | ||
"react-router-dom": "^5.1.2", | ||
"regenerator-runtime": "^0.13.3", | ||
"rxjs": "^6.5.3", | ||
"symbol-observable": "^1.2.0", | ||
"webpack": "^4.41.5", | ||
"whatwg-fetch": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@kbn/babel-preset": "1.0.0", | ||
"@kbn/dev-utils": "1.0.0", | ||
"css-loader": "^3.4.2", | ||
"del": "^5.1.0", | ||
"webpack": "^4.41.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10939,7 +10939,7 @@ core-js@^2.2.0, core-js@^2.4.0, core-js@^2.5.0, core-js@^2.5.1, core-js@^2.5.3, | |
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.9.tgz#6b4b214620c834152e179323727fc19741b084f2" | ||
integrity sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A== | ||
|
||
core-js@^3.0.1, core-js@^3.0.4, core-js@^3.2.1, core-js@^3.4.1, core-js@^3.6.4: | ||
core-js@^3.0.1, core-js@^3.0.4, core-js@^3.4.1, core-js@^3.6.4: | ||
version "3.6.4" | ||
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.6.4.tgz#440a83536b458114b9cb2ac1580ba377dc470647" | ||
integrity sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw== | ||
|
@@ -25520,7 +25520,7 @@ react-router-redux@^4.0.8: | |
resolved "https://registry.yarnpkg.com/react-router-redux/-/react-router-redux-4.0.8.tgz#227403596b5151e182377dab835b5d45f0f8054e" | ||
integrity sha1-InQDWWtRUeGCN32rg1tdRfD4BU4= | ||
|
||
[email protected]: | ||
[email protected], react-router@^5.1.2: | ||
version "5.1.2" | ||
resolved "https://registry.yarnpkg.com/react-router/-/react-router-5.1.2.tgz#6ea51d789cb36a6be1ba5f7c0d48dd9e817d3418" | ||
integrity sha512-yjEuMFy1ONK246B+rsa0cUam5OeAQ8pyclRDgpxuSCrAlJ1qN9uZ5IgyKC7gQg0w8OM50NXHEegPh/ks9YuR2A== | ||
|