Closed mattlewis92 closed 9 years ago
The sourcemaps are passed the wrong way round which breaks them when using previous loaders. For example:
import angular from 'angular'; var app = angular.module('myApp', []); function testFactory($location) { 'ngInject'; } app.factory('test', testFactory); app.run(function($http) { throw new Error('test'); });
module.exports = { entry: "./index", output: { path: __dirname + "/dist", filename: "bundle.js" }, module: { loaders: [ { test: /\.js?$/, exclude: /(node_modules|bower_components)/, loaders: ['ng-annotate', 'babel?optional[]=es7.decorators&optional[]=runtime'] } ] }, devtool: 'source-map' };
If you run that in your browser you get this:
Causes #6
The sourcemaps are passed the wrong way round which breaks them when using previous loaders. For example:
Sample es6
Sample webpack config
If you run that in your browser you get this: