Skip to content

Commit

Permalink
Merge pull request #3793 from swagger-api/ft/sourcemaps
Browse files Browse the repository at this point in the history
Sourcemaps
  • Loading branch information
shockey committed Oct 20, 2017
2 parents 53a4af6 + 4ac3212 commit 9a442b1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion make-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ module.exports = function(rules, options) {
}
},

devtool: specialOptions.sourcemaps ? "cheap-module-source-map" : null,
devtool: specialOptions.sourcemaps ? "nosource-source-map" : null,

plugins,

Expand Down
2 changes: 1 addition & 1 deletion webpack-dist-bundle.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let rules = [
name: "[name].js"
}
},
{ loader: "babel-loader" }
{ loader: "babel-loader?retainLines=true" }
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion webpack-dist-standalone.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let rules = [
name: "[name].js"
}
},
{ loader: "babel-loader" }
{ loader: "babel-loader?retainLines=true" }
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion webpack-dist.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let rules = [
name: "[name].js"
}
},
{ loader: "babel-loader" }
{ loader: "babel-loader?retainLines=true" }
]
}
]
Expand Down
10 changes: 2 additions & 8 deletions webpack-hot-dev-server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ const rules = [
inline: true
}
},
{ loader: "babel-loader" }
]
},
{ test: /\.(jsx)(\?.*)?$/,
use: [
{ loader: "react-hot-loader" },
{ loader: "babel-loader" }
{ loader: "babel-loader?retainLines=true" }
]
},
{ test: /\.(css)(\?.*)?$/,
Expand Down Expand Up @@ -48,7 +42,7 @@ module.exports = require("./make-webpack-config")(rules, {
_special: {
separateStylesheets: false,
},
devtool: "eval",
devtool: "eval-source-map",
entry: {
"swagger-ui-bundle": [
"./src/polyfills",
Expand Down

0 comments on commit 9a442b1

Please sign in to comment.