Skip to content

Commit

Permalink
Revert "fix(NA): creation of multiple processes on production by spli…
Browse files Browse the repository at this point in the history
…tting no_transpilation when setting up node env (#114940)"

This reverts commit 5fcc118.
  • Loading branch information
mistic committed Oct 15, 2021
1 parent 712fac6 commit 47ce4a8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Side Public License, v 1.
*/

const Fs = require('fs');
const Path = require('path');

const { REPO_ROOT } = require('@kbn/dev-utils');
Expand All @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion src/setup_node_env/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
* Side Public License, v 1.
*/

require('./no_transpilation_dist');
require('./no_transpilation');
require('./polyfill');
10 changes: 9 additions & 1 deletion src/setup_node_env/no_transpilation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
16 changes: 0 additions & 16 deletions src/setup_node_env/no_transpilation_dist.js

This file was deleted.

0 comments on commit 47ce4a8

Please sign in to comment.