@bit/loader-builtins

bit-bundler loader plugin for handling nodejs builtin modules, __dirname, and __filename

Usage no npm install needed!

<script type="module">
  import bitLoaderBuiltins from 'https://cdn.skypack.dev/@bit/loader-builtins';
</script>

README

bit-loader-builtins

Greenkeeper badge

Plugin for handling nodejs builtin modules in bit-bundler.

It uses all the builtins from browserify to provide all the shimmed modules.

Credit

All the stuff was basically possible because of all the amazing work by James Halliday (substack) and other amazing people from the community who got all this stuff working. I am merely taking their work and fitting it into bit-bundler as a plugin. So... THANKS!!!