Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-preload

cfware10.8mMIT0.2.1

Request that Node.js child processes preload modules

readme

node-preload

Travis CI Greenkeeper badge NPM Version NPM Downloads MIT

Request that Node.js child processes preload modules

Install node-preload

This module requires node.js 8 or above.

npm i node-preload

Usage

'use strict';

const preloadList = require('node-preload');

// Request that all Node.js child processes preload @babel/register
preloadList.push(require.resolve('@babel/register'));

Limitations

Worker threads are not directly supported by this module, results may vary.

node-preload for enterprise

Available as part of the Tidelift Subscription.

The maintainers of node-preload and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.2.1 (2019-12-22)

Bug Fixes

0.2.0 (2019-12-16)

⚠ BREAKING CHANGES

  • The API is completely rewritten, the export is now an Array.
  • Propagated variables are no longer supported. For this functionality preload a local module which uses process-on-spawn directly.

Features

0.1.4 (2019-11-01)

Features

0.1.3 (2019-10-07)

Bug Fixes

  • Properly handle backslashes in paths on Node.js 12 (#2) (2ad4448)

0.1.2 (2019-09-24)

Bug Fixes

  • esm must be loaded from the internal/preload module (a5444dd)

0.1.1 (2019-09-23)

Bug Fixes

  • Add main to package.json (6b39401)
  • Handle situations where a preload might require node-preload. (3b41164)

0.1.0 (2019-09-23)

Features