-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7b7c96b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is sweet dude. Did you check out https://github.com/marcuswestin/require?
7b7c96b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I did. Looks cool. I've been meaning to ask you the difference between that and node-browserify https://github.com/substack/node-browserify
7b7c96b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah, a couple of differences.
browserify does add syntactic support for require() in the browser, but has these and other shortcomings notably for your development environment:
require is built for a great development experience. Error reporting and debugging is as good as if you manually added a script tag for each required file. When you're done developing, there's good support for creating production builds. It's trivial to mount a require dev server onto you current node server, but you can also spin up a require dev server alongside any stack (e.g PHP/apache). Since dependencies are resolved and loaded at runtime using require.resolve, all you need to know is how node's module management and path resolution works.
In short, require makes no assumptions about your setup, works exactly like node's require does, and provides excellent compilation+minification for creating production builds.
7b7c96b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I will have to check it out. You still at Meebo?
7b7c96b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope! I'm at Clover :)