Skip to content

Instantly share code, notes, and snippets.

@joshq00
Created October 29, 2015 23:39
Show Gist options
  • Save joshq00/5f77df648f14b33afae2 to your computer and use it in GitHub Desktop.
Save joshq00/5f77df648f14b33afae2 to your computer and use it in GitHub Desktop.
Babel 6 : React / stage 0
{
"presets": [ "react", "es2015" ],
"plugins": [
"transform-es2015-modules-commonjs",
"transform-react-constant-elements",
]
}
{
"name": "babel-6-project",
"version": "1.0.0",
"dependencies": {
"babel-plugin-transform-es2015-modules-commonjs": "^6.0.2",
"babel-plugin-transform-react-constant-elements": "^6.0.2",
"babel-preset-es2015": "^6.0.8",
"babel-preset-react": "^6.0.2"
}
}
@vyorkin
Copy link

vyorkin commented Nov 11, 2015

It isn't necessary to include babel-plugin-transform-es2015-modules-commonjs plugin, because its already included in es2015 preset.

@joshq00
Copy link
Author

joshq00 commented Nov 17, 2015

@vyorkin: it wasn't at the time of this gist
@guyellis: I've tried on 2, 4 and 5

@cchamberlain
Copy link

Where's the stage-0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment