accelerator-core
Version:
[](https://travis-ci.org/furkleindustries/accelerator-core)
12 lines (11 loc) • 309 B
JavaScript
/**
* Some libraries import Node modules but don't use them in the browser.
* Tell Webpack to provide empty mocks for them so importing them works.
*/
export const getEmptyNodeModulesMap = () => Object.freeze({
child_process: 'empty',
dgram: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty',
});