-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Use 6to5 transform instead of ReactTools transform #53
Comments
We don't use it at KA; we use ReactTools like you are. But I'm doing a side project based off this repo and I ended up wanting more ES6. I have 6to5 running and it seems to work fine. My code isn't yet in a state to send you PRs, though I really should get to that. |
+1 good suggestion |
6to5 and esnext has merged efforts : http://6to5.org/blog/2015/01/12/6to5-esnext/ so it's a good suggestion |
I second this. 6to5 comes with some caveats if you're trying to support legacy browsers like IE8 and below, it seems like the caveats are outweighed by the goodness that 6to5 brings. |
- Refactor webpack config - Generate source maps in debug mode - Create two bundles during a build - `./build/app.js` (client-side) and `./build/server.js` (server-side) - Replace the original JSX transpiler with 6to5 - Register core-js polyfills - Clean up the top-level React component (App) - Load page content asynchronously - Remove `./src/images` folder and `images` Gulp task in favor of images-per-component Closes #57, #55, #53, #4
Just have replaced the original JSX transpiler with 6to5. See webpack.config.js |
- Refactor webpack config - Generate source maps in debug mode - Create two bundles during a build - `./build/app.js` (client-side) and `./build/server.js` (server-side) - Replace the original JSX transpiler with 6to5 - Register core-js polyfills - Clean up the top-level React component (App) - Load page content asynchronously - Remove `./src/images` folder and `images` Gulp task in favor of images-per-component Closes kriasoft#57, kriasoft#55, kriasoft#53, kriasoft#4
6to5 handles JSX just fine, but it also gives a lot more ES6 features.
The text was updated successfully, but these errors were encountered: