You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We do support the browser field. What specifically is not working? By the way, we created steal-socket.io to make it easier to use with steal: https://github.com/stealjs/steal-socket.io
So that if main was parsed as ./lib/node/index.jsfrom package.json then ./lib/client.js should be taken instead, without this support of "browser" field is not full.
@whitecolor commented on Mon Jan 11 2016
works
What do you think, should this work too?
The problem with this module:
https://github.com/socketio/engine.io-client/blob/master/package.json#L57
@matthewp commented on Mon Jan 11 2016
We do support the browser field. What specifically is not working? By the way, we created steal-socket.io to make it easier to use with steal: https://github.com/stealjs/steal-socket.io
@whitecolor commented on Mon Jan 11 2016
Do you parse it? "main"? or just handle string value?
But comlex object is in soket.io-client
package.json
- NO.@whitecolor commented on Mon Jan 11 2016
Socket.io client is working with map:
@matthewp commented on Mon Jan 11 2016
We do parse the browser object: https://github.com/stealjs/system-npm/blob/master/npm.js#L202
It's possible we are missing some scenarios though, would need more info to figure out what those are.
@whitecolor commented on Mon Jan 11 2016
if to add "main" to "browser" in https://github.com/socketio/engine.io-client/blob/master/package.json#L57
"browser": {
"main": "engine.io.js",
}
Steal doesn't see it.
BTW what does steal-socket.io do? Why it is needed?
@matthewp commented on Mon Jan 11 2016
What does "main" refer to here? Is this supposed to be the project main?
@whitecolor commented on Mon Jan 11 2016
I think yes it should be, a pretty standard convention, no?
@justinbmeyer commented on Mon Jan 11 2016
I don't think that's a supported property of browserify's "browser" option.
Sent from my iPhone
@matthewp commented on Mon Jan 11 2016
I wasn't sure if it was or not. If not what you want to do instead is:
@whitecolor commented on Mon Jan 11 2016
Ok then there is no info about
main
https://github.com/defunctzombie/package-browser-field-spec#replace-specific-files---advanced
but
jspm.main
field should be considered I believe stealjs/steal#550@whitecolor commented on Wed Jan 13 2016
if "browser" field is an object I beleve in contains a
paths
map:https://github.com/visionmedia/superagent/blob/master/package.json#L52
So that if main was parsed as
./lib/node/index.js
from package.json then./lib/client.js
should be taken instead, without this support of "browser" field is not full.@matthewp commented on Wed Jan 13 2016
Yes, we should be supporting this. There is definitely code for it. It's possible it's not working when the mapping is for the main.
@whitecolor commented on Wed Jan 13 2016
Yes if the is no
main
it seem to handle it.@pYr0x commented on Tue Mar 22 2016
is this PR handle this issue? #67
should i resolve the conflicts on this PR?
@matthewp commented on Tue Mar 22 2016
@pYr0x if you're going to look into this would you mind adding a test to that pr?
The text was updated successfully, but these errors were encountered: