Commit 83639bc 1 parent b5c56a4 commit 83639bc Copy full SHA for 83639bc
File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ const {
34
34
createYoResolveTransform
35
35
} = require ( './util/transform' ) ;
36
36
37
+ const { isFilePending} = FileEditor . State ;
38
+
37
39
/**
38
40
* Two-step argument splitting function that first splits arguments in quotes,
39
41
* and then splits up the remaining arguments if they are not part of a quote.
@@ -1230,12 +1232,13 @@ class Environment extends Base {
1230
1232
/**
1231
1233
* Apply transform streams to file in MemFs.
1232
1234
* @param {Transform[] } transformStreams - transform streams to be applied.
1233
- * @param {Stream } [stream ] - files stream, defaults to this.sharedFs.stream().
1235
+ * @param {{ streamOptions: any; stream: Stream; name: string; log: boolean } } [options ] - files stream, defaults to this.sharedFs.stream().
1234
1236
* @return {Promise }
1235
1237
*/
1236
1238
applyTransforms ( transformStreams , options = { } ) {
1237
1239
const {
1238
- stream = this . sharedFs . stream ( ) ,
1240
+ streamOptions = { filter : file => isFilePending ( file ) } ,
1241
+ stream = this . sharedFs . stream ( streamOptions ) ,
1239
1242
name = 'Transforming'
1240
1243
} = options ;
1241
1244
You can’t perform that action at this time.
0 commit comments