ym-project / gulp-esbuild

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

fix: Use loader configuration passed in plugin instead detection by file extension #12

Closed glebcha closed 2 years ago

glebcha commented 2 years ago

Example: src/SomeComponent/index.js use JSX markup inside. But entry.extname.slice(1) detect loader as js which is not correct if {loader: {'.js': 'jsx'} } passed in plugin options.

The idea is to use overrides like in original esbuild with loader property.

ym-project commented 2 years ago

Thank you for the contribution! I will watch your PR a little later.

ym-project commented 2 years ago

Hi! It will be very useful. Thank you!