Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update polyfills to sync with latest RN #414

Merged
merged 15 commits into from Apr 26, 2018
Merged

Conversation

thymikee
Copy link
Member

Builds on top of #410 (thanks @jukben), but without the breaking changes.

We decided to not introduce breakage (apart from new config, which is breaking gracefully) for now. We can however update the polyfills, which simplifies a bit our BannerPlugin usage.

I've tested example-app linked with yarn on both iOS and Android with live reload and HMR.

@thymikee thymikee changed the title Feat/non breaking polyfills Update polyfills to sync with latest RN Apr 24, 2018
@thymikee
Copy link
Member Author

Hold on for now, I didn't apply some of my changes

//
if (!global.self) {
global.self = global; /* eslint-disable-line */
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now inject self as a banner, as with Webpack 4 upgrade we seem to need to act on it earlier

@thymikee
Copy link
Member Author

This is ready for review now

@thymikee
Copy link
Member Author

@krizzu @jukben I'm especially interested in checking this under MLS conditions, can you do that for me? After green light I'd like to release a first RC

}
ErrorUtils.applyWithGuard(fun, context, args);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the magic? 💛

@jukben
Copy link
Contributor

jukben commented Apr 25, 2018

@thymikee I will run the tests ASAP. I will get back to you then! Thank you for finish this off. 🙏

"webpack-dev-middleware": "^1.12.0",
"webpack-hot-middleware": "^2.19.1",
"webpack": "^4.6.0",
"webpack-hot-middleware": "^2.22.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wut?? We don't use it anymore.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will remove then :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually we do, for process-update:

const processUpdate = require('webpack-hot-middleware/process-update');

@thymikee thymikee dismissed zamotany’s stale review April 26, 2018 14:43

we use process-update from webpack-hot-middleware

@thymikee thymikee merged commit 9a1465a into next Apr 26, 2018
@thymikee thymikee deleted the feat/non-breaking-polyfills branch April 26, 2018 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants