Skip to content

Running react-redux with Babel 6 #212

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

Merged
merged 6 commits into from Dec 12, 2015
Merged

Running react-redux with Babel 6 #212

merged 6 commits into from Dec 12, 2015

Conversation

martincik
Copy link
Contributor

Refs #206

@martincik martincik changed the title First attempt to integrate Babel 6 [help needed] Running react-redux with Babel 6 Dec 8, 2015
"stage": 0,
"loose": "all"
"presets": ["es2015", "stage-0", "react"],
"plugins": [
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we need to add those plugins? They should already included in presets.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refactored the code. Thanks. 👍

typeof SourceClass.prototype[key] === 'function'
).forEach(key => {
if (key !== 'render') {
if (key !== 'render' && key !== 'constructor') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is modifications in this file relative to babel6?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

rreusser added a commit to purposecampaigns/react-redux that referenced this pull request Dec 9, 2015
@satazor
Copy link

satazor commented Dec 12, 2015

+1

gaearon added a commit that referenced this pull request Dec 12, 2015
Running react-redux with Babel 6
@gaearon gaearon merged commit d6860bb into reduxjs:master Dec 12, 2015
@ellbee
Copy link
Contributor

ellbee commented Dec 12, 2015

@gaearon Do we want loose mode for IE8? React-Redux previously used it but this PR does not.

@gaearon
Copy link
Contributor

gaearon commented Dec 12, 2015

How is loose mode related to IE8? I thought it was about improving perf.

@gaearon
Copy link
Contributor

gaearon commented Dec 12, 2015

Either way I'd prefer adding loose mode back :-). I don't know how to do it though.

@ellbee
Copy link
Contributor

ellbee commented Dec 12, 2015

When not in loose mode Babel uses Object.defineProperty. You are right about the perf too though.

There is a preset for loose mode. The Babel 6 PR in redux has it.

@gaearon
Copy link
Contributor

gaearon commented Dec 12, 2015

Can you please fix it here?

@ellbee
Copy link
Contributor

ellbee commented Dec 12, 2015

Yep, give me a minute.

@gaearon
Copy link
Contributor

gaearon commented Dec 12, 2015

@ellbee Any other work there, or can I release 4.0.1 that doesn't have .babelrc?

@ellbee
Copy link
Contributor

ellbee commented Dec 12, 2015

@gaearon Go for it.

@gaearon
Copy link
Contributor

gaearon commented Dec 12, 2015

Out with 4.0.1 👍

@martincik martincik deleted the babel6 branch December 14, 2015 08:23
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.

5 participants