Revert "fix(NA): creation of multiple processes on production by splitting no_transpilation when setting up node env (#114940)"

This reverts commit 5fcc118913.
This commit is contained in:
Tiago Costa 2021-10-15 19:12:51 +01:00
parent 712fac6042
commit 47ce4a80a6
No known key found for this signature in database
GPG key ID: BAECC2D04A04C6EA
4 changed files with 11 additions and 20 deletions

View file

@ -6,7 +6,6 @@
* Side Public License, v 1.
*/
const Fs = require('fs');
const Path = require('path');
const { REPO_ROOT } = require('@kbn/dev-utils');
@ -23,7 +22,7 @@ require('@babel/register')({
// TODO: should should probably remove this link back to the source
Path.resolve(REPO_ROOT, 'x-pack/plugins/task_manager/server/config.ts'),
Path.resolve(REPO_ROOT, 'src/core/utils/default_app_categories.ts'),
].map((path) => Fs.realpathSync(path)),
],
babelrc: false,
presets: [require.resolve('@kbn/babel-preset/node_preset')],
extensions: ['.js', '.ts', '.tsx'],

View file

@ -6,5 +6,5 @@
* Side Public License, v 1.
*/
require('./no_transpilation_dist');
require('./no_transpilation');
require('./polyfill');

View file

@ -7,4 +7,12 @@
*/
require('./ensure_node_preserve_symlinks');
require('./no_transpilation_dist');
// The following require statements MUST be executed before any others - BEGIN
require('./exit_on_warning');
require('./harden');
// The following require statements MUST be executed before any others - END
require('symbol-observable');
require('source-map-support/register');
require('./node_version_validator');

View file

@ -1,16 +0,0 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
// The following require statements MUST be executed before any others - BEGIN
require('./exit_on_warning');
require('./harden');
// The following require statements MUST be executed before any others - END
require('symbol-observable');
require('source-map-support/register');
require('./node_version_validator');