mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Update webpack configs (#138936)
* Update webpack configs * cleanup * save file
This commit is contained in:
parent
8b3a884ba6
commit
344e1afd05
10 changed files with 13 additions and 12 deletions
|
@ -539,7 +539,6 @@
|
|||
"redux-saga": "^1.1.3",
|
||||
"redux-thunk": "^2.3.0",
|
||||
"redux-thunks": "^1.0.0",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
"remark-parse": "^8.0.3",
|
||||
"remark-stringify": "^8.0.3",
|
||||
"require-in-the-middle": "^5.1.0",
|
||||
|
|
|
@ -31,7 +31,7 @@ module.exports = (_, options = {}) => {
|
|||
// Because of that we should use for that value the same version we install
|
||||
// in the package.json in order to have the same polyfills between the environment
|
||||
// and the tests
|
||||
corejs: '3.21.1',
|
||||
corejs: '3.23.5',
|
||||
bugfixes: true,
|
||||
|
||||
...(options['@babel/preset-env'] || {}),
|
||||
|
|
|
@ -18,7 +18,7 @@ module.exports = (_, options = {}) => {
|
|||
modules: false,
|
||||
// Please read the explanation for this
|
||||
// in node_preset.js
|
||||
corejs: '3.21.1',
|
||||
corejs: '3.23.5',
|
||||
bugfixes: true,
|
||||
},
|
||||
],
|
||||
|
|
|
@ -32,11 +32,11 @@ NPM_MODULE_EXTRA_FILES = [
|
|||
RUNTIME_DEPS = [
|
||||
"//packages/kbn-babel-preset",
|
||||
"//packages/kbn-i18n",
|
||||
"@npm//@babel/runtime",
|
||||
"@npm//antlr4ts",
|
||||
"@npm//babel-loader",
|
||||
"@npm//monaco-editor",
|
||||
"@npm//raw-loader",
|
||||
"@npm//regenerator-runtime",
|
||||
"@npm//rxjs",
|
||||
]
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// This module is intended to be run inside of a webworker
|
||||
/* eslint-disable @kbn/eslint/module_migration */
|
||||
|
||||
import 'regenerator-runtime/runtime';
|
||||
import '@babel/runtime/regenerator';
|
||||
// @ts-ignore
|
||||
import * as worker from 'monaco-editor/esm/vs/editor/editor.worker';
|
||||
import { monaco } from '../../monaco_imports';
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// Please note: this module is intended to be run inside of a webworker.
|
||||
/* eslint-disable @kbn/eslint/module_migration */
|
||||
|
||||
import 'regenerator-runtime/runtime';
|
||||
import '@babel/runtime/regenerator';
|
||||
// @ts-ignore
|
||||
import * as worker from 'monaco-editor/esm/vs/editor/editor.worker';
|
||||
import { XJsonWorker } from './xjson_worker';
|
||||
|
|
|
@ -50,7 +50,6 @@ RUNTIME_DEPS = [
|
|||
"@npm//react-router-dom",
|
||||
"@npm//react-router",
|
||||
"@npm//react",
|
||||
"@npm//regenerator-runtime",
|
||||
"@npm//rison-node",
|
||||
"@npm//rxjs",
|
||||
"@npm//styled-components",
|
||||
|
@ -87,7 +86,6 @@ TYPES_DEPS = [
|
|||
"@npm//react-is",
|
||||
"@npm//react-router",
|
||||
"@npm//react-router-dom",
|
||||
"@npm//regenerator-runtime",
|
||||
"@npm//rison-node",
|
||||
"@npm//rxjs",
|
||||
"@npm//styled-components",
|
||||
|
|
|
@ -34,7 +34,6 @@ module.exports = (_, argv) => {
|
|||
'kbn-ui-shared-deps-npm': [
|
||||
// polyfill code
|
||||
'core-js/stable',
|
||||
'regenerator-runtime/runtime',
|
||||
'whatwg-fetch',
|
||||
'symbol-observable',
|
||||
// Parts of node-libs-browser that are used in many places across Kibana
|
||||
|
@ -50,23 +49,28 @@ module.exports = (_, argv) => {
|
|||
* node scripts/find_babel_runtime_helpers_in_use.js
|
||||
*/
|
||||
'@babel/runtime/helpers/assertThisInitialized',
|
||||
'@babel/runtime/helpers/asyncToGenerator',
|
||||
'@babel/runtime/helpers/classCallCheck',
|
||||
'@babel/runtime/helpers/classPrivateFieldGet',
|
||||
'@babel/runtime/helpers/classPrivateFieldSet',
|
||||
'@babel/runtime/helpers/createClass',
|
||||
'@babel/runtime/helpers/createForOfIteratorHelper',
|
||||
'@babel/runtime/helpers/createSuper',
|
||||
'@babel/runtime/helpers/defineProperty',
|
||||
'@babel/runtime/helpers/extends',
|
||||
'@babel/runtime/helpers/inherits',
|
||||
'@babel/runtime/helpers/inheritsLoose',
|
||||
'@babel/runtime/helpers/interopRequireDefault',
|
||||
'@babel/runtime/helpers/interopRequireWildcard',
|
||||
'@babel/runtime/helpers/objectSpread2',
|
||||
'@babel/runtime/helpers/objectWithoutProperties',
|
||||
'@babel/runtime/helpers/objectWithoutPropertiesLoose',
|
||||
'@babel/runtime/helpers/slicedToArray',
|
||||
'@babel/runtime/helpers/toArray',
|
||||
'@babel/runtime/helpers/taggedTemplateLiteralLoose',
|
||||
'@babel/runtime/helpers/toConsumableArray',
|
||||
'@babel/runtime/helpers/typeof',
|
||||
'@babel/runtime/helpers/wrapNativeSuper',
|
||||
'@babel/runtime/regenerator',
|
||||
|
||||
// modules from npm
|
||||
'@elastic/charts',
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
require('core-js/stable');
|
||||
require('regenerator-runtime/runtime');
|
||||
require('@babel/runtime/regenerator');
|
||||
|
||||
if (typeof window.Event === 'object') {
|
||||
// IE11 doesn't support unknown event types, required by react-use
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import 'core-js/stable';
|
||||
import 'regenerator-runtime/runtime';
|
||||
import '@babel/runtime/regenerator';
|
||||
import 'whatwg-fetch';
|
||||
import 'jquery';
|
||||
import '@kbn/flot-charts';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue