UNPKG

workerpool

Version:

Offload tasks to a pool of workers on node.js and in the browser

9 lines (7 loc) 296 B
// source of inspiration: https://github.com/sindresorhus/require-fool-webpack var requireFoolWebpack = eval( 'typeof require !== \'undefined\' ' + '? require ' + ': function (module) { throw new Error(\'Module " + module + " not found.\') }' ); module.exports = requireFoolWebpack;