-
Notifications
You must be signed in to change notification settings - Fork 37
Conversation
This removes the only dependency using generators in the ipfs/libp2p ecosystem. Next version of create-react-app will support ipfs out-of-box with this change.
This is rad. I'm just re-testing this after getting caught up in #262 which i ran into when first testing this. Just to clarify for others, the key point here is
We really want @hugomrdias can you add some notes here on what to check for if someone wants to test this change. I'm following the steps in ipfs/js-ipfs#1321 (comment) I'm able to run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hugomrdias what's the process for verifying this manually since there are no tests? I attempted to verify it from the linked comments, but I didn't encounter a build issue before adding resolutions to the package.json for his fix.
@jacobheun the current tests should be enough because this does not add interface/logic changes. @olizilla and @jacobheun the Default browserslist config "browserslist": {
"development": [
"last 2 chrome versions",
"last 2 firefox versions",
"last 2 edge versions"
],
"production": [
">1%",
"last 4 versions",
"Firefox ESR",
"not ie < 11"
]
} So to better explain the problem, a couple of points:
|
@hugomrdias thanks for the additional info. I was just looking for clarity around the manual verification process to ensure everything was working okay. I was able to verify this by doing: $ create-react-app .
$ # add ipfs into the app
$ yarn bulld # fails
$ yarn upgrade react-scripts@2.0.0-next.66cc7a90
$ yarn build # fails
$ # add resolutions per https://github.com/ipfs/js-ipfs/issues/1321#issuecomment-393112809
$ yarn build # succeeds I will get this merged and released, thanks! |
This removes the only dependency using generators in the ipfs/libp2p ecosystem.
Next version of create-react-app will support ipfs out-of-box with this change.
hashlru is the original implementation sindre used for quicklru
https://github.com/sindresorhus/quick-lru
Browser bundling ecosystem is moving towards running babel preset env through the dependencies and stop relying on pre built bundles to optimize end user bundles. But babel preset env handles everything but generators, this change will make any package that uses
js-libp2p-switch
more compatible.