Files
bun.sh/src/node-fallbacks
Marko Vejnovic 48617563b5 ENG-21534: Satisfy aikido (#24880)
### What does this PR do?

- Bumps some packages
- Does some _best practices_ in certain areas to minimize Aikido noise.

### How did you verify your code works?

CI.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-24 20:16:03 -08:00
..
2025-05-23 17:49:36 -07:00
2025-11-24 20:16:03 -08:00
2025-05-23 17:49:36 -07:00
2024-10-19 00:23:57 -07:00
2025-05-23 17:49:36 -07:00
2024-10-19 00:23:57 -07:00

Browser polyfills for bun build --target=browser

When using bun build --target=browser, if you attempt to import a Node.js module, Bun will load a polyfill for that module in an attempt to let your code still work even though it's not running in Node.js or a server.

For example, if you import zlib, the node-fallbacks/zlib.js file will be loaded.

Not used by Bun's runtime

These files are not used by Bun's runtime. They are only used for the bun build --target=browser command.

If you're interested in contributing to Bun's Node.js compatibility, please see the src/js directory.