MCPcopy
hub / github.com/webpack/webpack / outputPath

Method outputPath

lib/MultiCompiler.js:193–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191 }
192
193 get outputPath() {
194 let commonPath = this.compilers[0].outputPath;
195 for (const compiler of this.compilers) {
196 while (
197 compiler.outputPath.indexOf(commonPath) !== 0 &&
198 /[/\\]/.test(commonPath)
199 ) {
200 commonPath = commonPath.replace(/[/\\][^/\\]*$/, "");
201 }
202 }
203
204 if (!commonPath && this.compilers[0].outputPath[0] === "/") return "/";
205 return commonPath;
206 }
207
208 get inputFileSystem() {
209 throw new Error("Cannot read inputFileSystem of a MultiCompiler");

Callers

nothing calls this directly

Calls 2

testMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected