Files
Huáng JùnliàngandGitHub 0742126f13 fix(register): do not inherit parent execArgv (#18131)
* fix(register): do not inherit parent execArgv

Per https://nodejs.org/api/worker_threads.html#launching-worker-threads-from-preload-scripts, new Worker threads will inherit command line flags, including `-e` and `-r`.

When they are combined with the `--input-type`, Node.js somehow hangs and the worker does not start.

* feat: resolve <rootDir> token in process tests

* add tests

* fix: ensure args are always string

* replace rootDir by file:// url

* test: use <rootUrl> for --import tests
2026-07-17 10:33:54 -04:00
..
2023-06-13 15:51:13 +02:00

@babel/register

babel require hook

See our website @babel/register for more information or the issues associated with this package.

Install

Using npm:

npm install --save-dev @babel/register

or using yarn:

yarn add @babel/register --dev