Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
[removed] webpack deftool eval-source-map as a redundant optimisation…
Browse files Browse the repository at this point in the history
… in development mode, which actually made development harder
  • Loading branch information
thealjey committed Jan 7, 2016
1 parent 9bc19e2 commit 217aa9d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/JSCompiler.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ <h1 class="page-title">Source: JSCompiler.js</h1>
const compiler = webpack({
cache,
debug: true,
devtool: `${this.isProduction ? '' : 'eval-'}source-map`,
devtool: 'source-map',
entry: inPath,
output: {path: dirname(outPath), filename: basename(outPath)},
module: {
Expand Down
2 changes: 1 addition & 1 deletion docs/quicksearch.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/JSCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ var JSCompiler = exports.JSCompiler = function (_Compiler) {
var compiler = (0, _webpack2.default)({
cache: cache,
debug: true,
devtool: (this.isProduction ? '' : 'eval-') + 'source-map',
devtool: 'source-map',
entry: inPath,
output: { path: (0, _path.dirname)(outPath), filename: (0, _path.basename)(outPath) },
module: {
Expand Down
2 changes: 1 addition & 1 deletion src/JSCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class JSCompiler extends Compiler {
const compiler = webpack({
cache,
debug: true,
devtool: `${this.isProduction ? '' : 'eval-'}source-map`,
devtool: 'source-map',
entry: inPath,
output: {path: dirname(outPath), filename: basename(outPath)},
module: {
Expand Down
2 changes: 1 addition & 1 deletion test/JSCompiler.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('JSCompiler', () => {
expect(webpack).calledWith({
cache: {},
debug: true,
devtool: 'eval-source-map',
devtool: 'source-map',
entry: '/path/to/the/input/file.js',
output: {path: '/path/to/the/output', filename: 'file.js'},
module: {
Expand Down

0 comments on commit 217aa9d

Please sign in to comment.