andrey-skl / ng-annotate-loader

Webpack loader to annotate angular applications
MIT License
120 stars 28 forks source link

Lost Sourcemaps #34

Open daniel-nagy opened 7 years ago

daniel-nagy commented 7 years ago

Using the latest version, currently 0.2.0, when I start my webpack dev server some of my source maps are not visible in the browser. If I downgrade back to 0.1.1 they are visible in the browser again.

const babelLoader = {
  loader: 'babel-loader',
  options: {
    cacheDirectory: true,
    presets: [['latest', {modules: false}]],
    plugins: [
      'transform-class-properties',
      'transform-object-rest-spread'
    ]
  }
};

const javascriptRule = {
  ...
  use: ['ng-annotate-loader', babelLoader]
};

const config = {
  devtool: 'cheap-module-eval-source-map',
  ...
  module: {
    rules: [
      ...
      javascriptRule
    ]
  },
}
browser: Chrome 56.0.2924.87 (64-bit)
webpack: v2.2.1
babel-loader: v6.2.10
timothylombrana commented 7 years ago

commenting to see if we can get some development moving on this, please and thank you!

timofei-iatsenko commented 7 years ago

fixed in this PR https://github.com/huston007/ng-annotate-loader/pull/41