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 to babel6 #136

Merged
merged 2 commits into from Feb 25, 2016
Merged

update to babel6 #136

merged 2 commits into from Feb 25, 2016

Conversation

iam4x
Copy link
Owner

@iam4x iam4x commented Nov 3, 2015

@@ -8,7 +8,7 @@ process.env.NODE_PATH = 'app';
require('module').Module._initPaths();

// Install `babel` hook for ES6
require('babel/register');
require('babel-core/register');

Choose a reason for hiding this comment

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

'require' is not defined.

Copy link
Owner Author

Choose a reason for hiding this comment

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

We need babel-eslint to be updated first.

@iam4x
Copy link
Owner Author

iam4x commented Dec 15, 2015

I've given it a new try, but still getting shit loads of errors. There's many open issues...

@beckend
Copy link

beckend commented Dec 18, 2015

You can use "babel-plugin-add-module-export" so you can require modules without .default property.
https://github.com/59naga/babel-plugin-add-module-exports

@MaxSvargal
Copy link
Contributor

I have a solution with packages:
"babel": "^6.3.26", "babel-core": "^6.4.5", "babel-loader": "^6.2.1", "babel-polyfill": "^6.3.14", "babel-preset-es2015": "^6.3.13", "babel-preset-react": "^6.3.13", "babel-preset-stage-0": "^6.3.13", "babel-register": "^6.4.3", "babel-runtime": "^6.3.19"
dev:
"babel-plugin-add-module-exports": "^0.1.2", "babel-plugin-react-transform": "^2.0.0", "babel-plugin-transform-decorators-legacy": "^1.3.4"

.babelrc
{ "presets": ["es2015", "stage-0", "react"], "plugins": ["add-module-exports", "transform-decorators-legacy"], "env": { "browser": { "plugins": [ ["react-transform", { "transforms": [{ "transform": "react-transform-hmr", "imports": ["react"], "locals": ["module"] }, { "transform": "react-transform-catch-errors", "imports": ["react", "redbox-react"] }] }] ] } } }

Upgrade to latest version of linter and get a some little fixes ;)

@iam4x
Copy link
Owner Author

iam4x commented Feb 25, 2016

Finally 🚢 🎉

iam4x pushed a commit that referenced this pull request Feb 25, 2016
@iam4x iam4x merged commit 9d0e784 into master Feb 25, 2016
@iam4x iam4x deleted the babel6 branch February 25, 2016 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants