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

Unified Diff: webpack_runner.js

Issue 29656586: Issue 6230 - Alter resolve path of generated info module (Closed)
Patch Set: Created Jan. 4, 2018, 2:36 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 | « info.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webpack_runner.js
diff --git a/webpack_runner.js b/webpack_runner.js
index e18c7e7e7dd5e878f634001731ef8bb0c778343a..6e8685ea1e9f2752b34dad742c14ca9fa959a54f 100644
--- a/webpack_runner.js
+++ b/webpack_runner.js
@@ -50,7 +50,7 @@ process.stdin.on("end", () =>
devtool: "source-map",
module: {
rules: [{
- include: path.join(__dirname, "info.js"),
+ include: path.join(extension_path, "lib", "info.js"),
use: ["info-loader"]
}]
},
@@ -67,7 +67,7 @@ process.stdin.on("end", () =>
alias: {
// To use our custom loader for the info module we must first set up
// an alias to a file that exists.
- info$: path.join(__dirname, "info.js"),
+ info$: path.join(extension_path, "lib", "info.js"),
// Prevent builtin Node.js modules from being used instead of our own
// when the names clash. Once relative paths are used this won't be
// necessary.
« no previous file with comments | « info.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld