Closed
Description
After deploying a coffee app as follows:
browserify --transform coffeeify -s myapp src/index.coffee --debug > myapp-debug.js
The require for nodejs (first) is normal, but the required used by the browser is different. This is my work-around to include bytebuffer in both cases:
ByteBuffer = require('bytebuffer')
ByteBuffer = ByteBuffer.dcodeIO.ByteBuffer if ByteBuffer.dcodeIO
Metadata
Metadata
Assignees
Labels
No labels