Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Check that we're using these babel / webpack optimizations #53

Closed
bbondy opened this issue Dec 15, 2015 · 3 comments
Closed

Check that we're using these babel / webpack optimizations #53

bbondy opened this issue Dec 15, 2015 · 3 comments

Comments

@bbondy
Copy link
Member

bbondy commented Dec 15, 2015

Check that we're using these babel / webpack optimizations:

"optimisation.react.constantElements",
"optimisation.react.inlineElements",

@hzoo
Copy link
Contributor

hzoo commented Jan 23, 2016

In Babel 6, currently the react preset doesn't contain those plugins http://babeljs.io/docs/plugins/preset-react/.

Equivalents are:
http://babeljs.io/docs/plugins/transform-react-inline-elements/
http://babeljs.io/docs/plugins/transform-react-constant-elements/

// new .babelrc
{
  "presets": ["react", "es2015"],
  "plugins": [
    "transform-react-inline-elements",
    "transform-react-constant-elements"
  ]
}

@bbondy
Copy link
Member Author

bbondy commented Jan 23, 2016

Able to do a PR?

@hzoo
Copy link
Contributor

hzoo commented Jan 23, 2016

#280

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants