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

react integration but unable to place breakpoint in browser console at correct location #1165

Open
ChandraKantPaliwal opened this issue Sep 14, 2016 · 0 comments

Comments

@ChandraKantPaliwal
Copy link

Hi.
I am using generator-gulp-angular in my projects and it's awesome!
with es6 angular code but i am going to integrate React JSX template in my project with ES6 code
and i have configure it with

module: {
      preLoaders: [{
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'eslint-loader'
      }],
      loaders: [{
        test: /\.js$/,
        exclude: /node_modules/,
        loaders: ['ng-annotate', 'babel-loader?presets[]=es2015']
      }, {
        test: /\.jsx?$/,
        exclude: /node_modules/,
        loader: 'babel',
        query: {
          presets: ['react', 'es2015', 'stage-0']
        }
      }]
    }

then also it works fine but after implementing this configuration in the browser debugger does not works properly when put any breakpoint in js code then breakpoint goes some at different location randomly like 50-60 line below.

Could you help me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant