mjohnston / react-native-webpack-server

Build React Native apps with Webpack
MIT License
932 stars 84 forks source link

Unknown option: base.extra using babel-loader 6.0 #131

Closed JeanLebrument closed 9 years ago

JeanLebrument commented 9 years ago

Hello,

I have an error message when using npm run hot:
Unknown option: base.extra

This is due to the hot option that include the following code:

  config.module.loaders[0].query.extra = {
    'react-transform': {
      transforms: [{
        transform: 'react-transform-hmr',
        imports: ['react-native'],
        locals: ['module']
      }]
    }
  };

Any suggestion?

Thanks!

elliottsj commented 9 years ago

babel-plugin-react-transform does not yet support Babel 6. See https://github.com/gaearon/babel-plugin-react-transform/issues/46

catamphetamine commented 8 years ago

@elliottsj Now it does