jlengstorf / code.lengstorf.com

A blog for me to nerd the fuck out.
https://code.lengstorf.com
ISC License
7 stars 3 forks source link

How to Rollup a Node app and interact with it in the browser #12

Open corysimmons opened 8 years ago

corysimmons commented 8 years ago

I've went through a bunch of tutorials/videos and such. Keep running into stupid Buffer is not defined and other crap errors.

It'd be nice if someone went over how to do this with Rollup.

Here's how you do it in Browserify: browserify node.js > browser.js