RaveJS / rave

Zero-configuration application bootstrap and development
278 stars 8 forks source link

A node builtins extension #29

Open KidkArolis opened 10 years ago

KidkArolis commented 10 years ago

Would be cool to be able to do smth like

npm install --save rave-load-node-builtins

which then enables require("path"), require("url"), etc.

This looks like the list of those packages, need to double check that's the one browserify is using. https://www.npmjs.org/package/browser-builtins

unscriptable commented 10 years ago

:+1:

Anybody feel like creating this extension? I'd gladly assist.

FYI, it doesn't look as simple as I initially hoped since the browser-builtins package doesn't actually shim "fs" and "path": https://github.com/alexgorbatchev/node-browser-builtins/blob/master/builtin/fs.js

Hopefully, there's another browser shim for those somewhere?