Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test_runner.js

Issue 29523651: Noissue - Enable source map for the tests (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Aug. 22, 2017, 12:14 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_runner.js
===================================================================
--- a/test_runner.js
+++ b/test_runner.js
@@ -61,16 +61,17 @@
{
return new Promise((resolve, reject) =>
{
// Based on this example
// https://webpack.js.org/api/node/#custom-file-systems
let memoryFS = new MemoryFS();
options.output = {filename: bundleFilename, path: "/"};
+ options.devtool = "cheap-eval-source-map";
let webpackCompiler = webpack(options);
webpackCompiler.outputFileSystem = memoryFS;
webpackCompiler.run((err, stats) =>
{
// Error handling is based on this example
// https://webpack.js.org/api/node/#error-handling
if (err)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld