mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
disable new babel plugins
This commit is contained in:
parent
e98c40ae52
commit
04d959431d
4 changed files with 15 additions and 15 deletions
|
@ -24,11 +24,11 @@ module.exports = {
|
|||
plugins: [
|
||||
'asyncGenerators',
|
||||
'classProperties',
|
||||
'classPrivateProperties',
|
||||
'classPrivateMethods',
|
||||
// 'classPrivateProperties',
|
||||
// 'classPrivateMethods',
|
||||
'dynamicImport',
|
||||
'exportDefaultFrom',
|
||||
'exportNamespaceFrom',
|
||||
// 'exportNamespaceFrom',
|
||||
'objectRestSpread',
|
||||
'throwExpressions',
|
||||
],
|
||||
|
|
|
@ -35,13 +35,13 @@ const plugins = [
|
|||
// Need this since we are using TypeScript 3.7+
|
||||
require.resolve('@babel/plugin-proposal-nullish-coalescing-operator'),
|
||||
|
||||
// Proposal is on stage 4 (https://github.com/tc39/proposal-export-ns-from)
|
||||
// Need this since we are using TypeScript 3.8+
|
||||
require.resolve('@babel/plugin-proposal-export-namespace-from'),
|
||||
// // Proposal is on stage 4 (https://github.com/tc39/proposal-export-ns-from)
|
||||
// // Need this since we are using TypeScript 3.8+
|
||||
// require.resolve('@babel/plugin-proposal-export-namespace-from'),
|
||||
|
||||
// Proposal is on stage 4 (https://github.com/tc39/proposal-export-ns-from)
|
||||
// Need this since we are using TypeScript 3.9+
|
||||
require.resolve('@babel/plugin-proposal-private-methods'),
|
||||
// // Proposal is on stage 4 (https://github.com/tc39/proposal-export-ns-from)
|
||||
// // Need this since we are using TypeScript 3.9+
|
||||
// require.resolve('@babel/plugin-proposal-private-methods'),
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
|
|
|
@ -76,7 +76,7 @@ export class Server {
|
|||
private readonly status: StatusService;
|
||||
private readonly coreApp: CoreApp;
|
||||
|
||||
#pluginsInitialized?: boolean;
|
||||
private pluginsInitialized?: boolean;
|
||||
private coreStart?: InternalCoreStart;
|
||||
|
||||
constructor(
|
||||
|
@ -179,7 +179,7 @@ export class Server {
|
|||
};
|
||||
|
||||
const pluginsSetup = await this.plugins.setup(coreSetup);
|
||||
this.#pluginsInitialized = pluginsSetup.initialized;
|
||||
this.pluginsInitialized = pluginsSetup.initialized;
|
||||
|
||||
await this.legacy.setup({
|
||||
core: { ...coreSetup, plugins: pluginsSetup, rendering: renderingSetup },
|
||||
|
@ -198,7 +198,7 @@ export class Server {
|
|||
const elasticsearchStart = await this.elasticsearch.start();
|
||||
const savedObjectsStart = await this.savedObjects.start({
|
||||
elasticsearch: elasticsearchStart,
|
||||
pluginsInitialized: this.#pluginsInitialized,
|
||||
pluginsInitialized: this.pluginsInitialized,
|
||||
});
|
||||
const capabilitiesStart = this.capabilities.start();
|
||||
const uiSettingsStart = await this.uiSettings.start();
|
||||
|
|
|
@ -72,13 +72,13 @@ export function* extractCodeMessages(buffer, reporter) {
|
|||
'typescript',
|
||||
'objectRestSpread',
|
||||
'classProperties',
|
||||
'classPrivateProperties',
|
||||
'classPrivateMethods',
|
||||
// 'classPrivateProperties',
|
||||
// 'classPrivateMethods',
|
||||
'asyncGenerators',
|
||||
'dynamicImport',
|
||||
'nullishCoalescingOperator',
|
||||
'optionalChaining',
|
||||
'exportNamespaceFrom',
|
||||
// 'exportNamespaceFrom',
|
||||
],
|
||||
});
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue