-
Notifications
You must be signed in to change notification settings - Fork 787
Better packaging utilizing package.json browser field #306
Conversation
Provide compiled sources from 'lib' for node modules. Provide all API exports from index.js. This is breaking change. As a side effect this change fixes file paths in Stack Traces when react-apollo throws exceptions.
ade0c3e
to
6edab0c
Compare
@jbaxleyiii are you OK with these changes? |
@tmeasday I'm still concerned with the over shipping to clients. Not all packages respect the browser field in package.json. (AFAIK Meteor doesn't even support it?). I don't think it's worth the potential extra shipping to save a |
Meteor definitely honors the browser field! AFAIK Webpack and Browserify do too. I don't know about stuff like Rollup. |
@stubailo Rollup supports it too, in the node resolve plugin: |
Well, I'm not only trying to save '/' in the import.
|
Alright I'm game then! |
Thanks for working hard to get this through @Vlasenko |
@Vlasenko any idea why
It passed before I merged this PR and the PR itself passed :/ |
@tmeasday I think injectEnvironment is not related to this PR, but rather related to another PR and I have even left comment with caution about my observations: |
@tmeasday Though at this stage, I think you can just upgrade everything to [email protected] instead. |
With 15.4 I started seeing a whole lot of warnings like:
And ultimately errors like:
Simply bumping the |
Ahh, the problem was |
@tmeasday Yeah, somehow this all is not surprising :) |
I blame npm, as always. Although in their defence I did ignore a peer dep warning (which they've conditioned me to do) |
Provide compiled sources from 'lib' for node modules. Provide all API exports from index.js.
This is breaking change.
As a side effect this change fixes file paths in Stack Traces when react-apollo throws exceptions.