Skip to content

v0.15.0

Latest

Choose a tag to compare

@ym-project ym-project released this 31 May 15:16
· 2 commits to v0 since this release
⚠️ This release contains backwards-incompatible changes ⚠️

Now plugin has only named imports (previously there was default import):

- import gulpEsbuild, { createGulpEsbuild } from 'gulp-esbuild'
+ import { gulpEsbuild, createGulpEsbuild } from 'gulp-esbuild'

Also you need to pass entryPoints always:

- src('./src/**.js').pipe(gulpEsbuild()).dest(dist('./dist'));
+ src('./src/**.js').pipe(gulpEsbuild({ entryPoints: ['src/entry.js'] })).dest(dist('./dist'));

Why?
Previous version of the plugin had behavior: every gulp's virtual file was esbuild's entryPoint. It means the plugin set entryPoints itself. But it has limitations to works with virtual files correctly.
For example we have 3 virtual files and one entryPoint which import other two files. If we had 3 separate entrypoints, we would get 3 separate output files, not one that includes the other 2.

Be sure, another gulp's libraries for webpack, rollup, ... do the same.

What's Changed

  • add full support of gulp's virtual files
  • migrated to typescript
  • migrated to https://oxc.rs/ from eslint

Full Changelog: v0.14.1...v0.15.0