我使用了through2包,然后准备了processFile(file)函数,但作为来自through2的参数,它以类似于XML的奇怪格式接收文件,而不是file.path、file.encoding等对象当file.path以下列格式返回每个文件时,如何接收through2:var through = require('through2');
class
at afterTransform (C:\Projects\Projects\project1\node_modules\gulp-file-include\node_modules\through2_read (C:\Projects\Projects\project1\node_modules\gulp-file-include\node_modules\through2\node_modules_write (C:\Projects\Projects\project1\node_modules\gulp-file-include\
at DestroyableTransform.emit (events.js:169:7) at onwrite (D:\Dev\pprs\pprs\node_modules\through2readable-stream\lib\_stream_writable.js:339:11)
at Writab
through2,但是得到了不同的结果,主要是挂起的,我不知道该做什么,也不知道调试的步骤。我对所有的选择都持开放态度。谢谢你的洞察力。multiparty from 'multiparty' PassThroughimport through from 'through'
export function promisedMultiparty