meteor / node-stubs

Stub implementations of Node built-in modules, a la Browserify
MIT License
17 stars 8 forks source link

What are these for? #1

Closed trusktr closed 4 years ago

trusktr commented 8 years ago

Document why default apps come with this. https://github.com/meteor/guide/issues/314

Tim-W commented 8 years ago

The only documentation I can find is "use this when you want to use npm packages on the client". Some explanation how the package works and what it does (not) accept would be useful.

benjamn commented 5 years ago

The meteor-node-stubs npm package provides browser-friendly implementations of Node's built-in modules, like path, buffer, util, etc, similar to the way Webpack, Browserify, and other bundlers handle built-in modules. Meteor's module system avoids actually bundling any stub modules (and their dependencies) if they are not used, so there is no cost to keeping meteor-node-stubs in the dependencies. In other words, leave meteor-node-stubs installed unless you really know what you're doing.

filipenevola commented 4 years ago

I've updated this in the guide as well https://guide.meteor.com/using-npm-packages.html#client-npm