smrq

smrq/babel-plugin-require-context-h...

Babel plugin to replicate Webpack require.context

JavaScript
46
14
No license

This Babel plugin replicates Webpack's `require.context` function for environments that use Babel but not Webpack (like Jest or Node.js). It works by rewriting `require.context` calls into a custom global function that dynamically requires modules relative to the calling file. The project

Total donated
Undistributed
Share with your subscribers: