Skip to content

Commit

Permalink
Fix the Gulp plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Nov 11, 2024
1 parent c0ea285 commit 249fe76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gulp_plugin.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import log from "fancy-log"
import {Buffer} from "node:buffer"
import {Transform} from "node:stream"
import PluginError from "plugin-error"
import {FastTransformer} from "./fast_transformer.js"
import {SafeTransformer} from "./safe_transformer.js"

Expand All @@ -12,7 +13,7 @@ export class GulpPlugin extends Transform
super objectMode: on

binary = options.binary ? "php"
transformer = if options.mode ? "safe" is "fast" then new FastTransformer binary else new SafeTransformer binary
transformer = if (options.mode ? "safe") is "fast" then new FastTransformer binary else new SafeTransformer binary
close = -> await transformer.close()
@on("end", close).on("error", close)

Expand Down

0 comments on commit 249fe76

Please sign in to comment.