Skip to content

browser field in package.json no longer works #1250

@Gillingham

Description

@Gillingham

In package.json I have

"browser": {
    "rampage": "./rampage/static-dev/js/rampage.js"
}

In browserify <10.1.1 I could then use .add('rampage') just fine, now however it errors out:

Error: Cannot find module '*snip*/rampage' from '*snip*'
    at *snip*/node_modules/browserify/node_modules/resolve/lib/async.js:55:21
    at load (*snip*/node_modules/browserify/node_modules/resolve/lib/async.js:69:43)
    at onex (*snip*/node_modules/browserify/node_modules/resolve/lib/async.js:92:31)
    at *snip*/node_modules/browserify/node_modules/resolve/lib/async.js:22:47

I can't test 10.1.1 to be certain because of the JSONStream changes, I can't even roll back to a working browserify version because of that as well. This was most definitely working in 10.1.0 though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions