ym-project / gulp-esbuild

gulp plugin for esbuild bundler
MIT License
43 stars 7 forks source link

Invalid option in build() call: "pipe" #10

Closed jgod closed 3 years ago

jgod commented 3 years ago
Error in plugin "gulp-esbuild"
Message:
    Build failed with 1 error:
C:\Users\justin\Desktop\test\node_modules\esbuild\lib\main.js:256:12: error: Invalid option in build() call: "pipe"

Using

      .pipe(
        gulpEsbuild({
          bundle: false,
          target: 'esnext',
          incremental: true,
          pipe: true,
        })
      )

It gives the same error even when using piping instead (which is used in the README)

C:\Users\justin\Desktop\test\node_modules\esbuild\lib\main.js:256:12: error: Invalid option in build() call: "piping"
jgod commented 3 years ago

Nevermind, I didn't see that you have to do this on the imported options. I was trying to apply this to the gulp task :)