Thanks to visit codestin.com
Credit goes to github.com

Skip to content

require returns dcodeIO in a standalone coffeeify deployment #34

Closed
@jcalfee

Description

@jcalfee

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions