-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
Recognize babel-plugin-react-transform transformers. #45
Comments
It is not supporting Babel 6. In such case, I think it is not worth to invest on it. I will revisit here after Babel 6 is supported by it. |
I ran into a similar issue:
The code in use: browserify(somePath).transform('babelify', {presets: ['es2015', 'react']}) |
var baseConfig = require('./webpack.config.base');
// Add the hmr transform to the js(x) loader
baseConfig.module.loaders[0].query = {
compact: false,
plugins: [
// must be an array with options object as second item
['react-transform', {
// must be an array of objects
transforms: [{
// can be an NPM module name or a local path
transform: 'react-transform-hmr',
// see transform docs for 'imports' and 'locals' dependencies
imports: ['react'],
locals: ['module']
}]
}]
]
}; |
Cool! I will take a look after vacation. :) |
@zeke You are hitting a different issue. Could you please open a new issue for that? |
Refactor Code and Implement Pluggable Design.
Related: #44
NPM document: https://www.npmjs.com/package/babel-plugin-react-transform
Example:
The text was updated successfully, but these errors were encountered: