Webpack 5是否支持将UNC路径作为输出?

Webpack 5是否支持将UNC路径作为输出?,webpack,fs,unc,webpack-5,Webpack,Fs,Unc,Webpack 5,如果我将我的网页包配置的output.path属性设置为UNC路径,如\\COMPUTER-NAME\some share,我会从网页包5(它以前在网页包4中工作)起出现以下错误: 我查看了join方法ifnode\u modules\webpack\lib\util\fs.js:121:9,它看起来像: /** * @param {InputFileSystem|OutputFileSystem|undefined} fs a file system * @param {string}

如果我将我的网页包配置的
output.path
属性设置为UNC路径,如
\\COMPUTER-NAME\some share
,我会从网页包5(它以前在网页包4中工作)起出现以下错误:

我查看了join方法if
node\u modules\webpack\lib\util\fs.js:121:9
,它看起来像:


/**
 * @param {InputFileSystem|OutputFileSystem|undefined} fs a file system
 * @param {string} rootPath a path
 * @param {string} filename a filename
 * @returns {string} the joined path
 */
const join = (fs, rootPath, filename) => {
    if (fs && fs.join) {
        return fs.join(rootPath, filename);
    } else if (rootPath.startsWith("/")) {
        return path.posix.join(rootPath, filename);
    } else if (rootPath.length > 1 && rootPath[1] === ":") {
        return path.win32.join(rootPath, filename);
    } else {
        throw new Error(
            `${rootPath} is neither a posix nor a windows path, and there is no 'join' method defined in the file system`
        );
    }
};
从这里可以看出,如果输入fs没有join方法,UNC路径将无法工作

我不确定输入的fs参数是什么。我正在windows系统上测试这个功能,我想这个功能不存在


是否应支持UNC路径?

我遇到了相同的错误。

/**
 * @param {InputFileSystem|OutputFileSystem|undefined} fs a file system
 * @param {string} rootPath a path
 * @param {string} filename a filename
 * @returns {string} the joined path
 */
const join = (fs, rootPath, filename) => {
    if (fs && fs.join) {
        return fs.join(rootPath, filename);
    } else if (rootPath.startsWith("/")) {
        return path.posix.join(rootPath, filename);
    } else if (rootPath.length > 1 && rootPath[1] === ":") {
        return path.win32.join(rootPath, filename);
    } else {
        throw new Error(
            `${rootPath} is neither a posix nor a windows path, and there is no 'join' method defined in the file system`
        );
    }
};