esbuild-plugin-solid icon indicating copy to clipboard operation
esbuild-plugin-solid copied to clipboard

usage in combination with another esbuild plugin

Open aunruh opened this issue 1 year ago • 0 comments

hey im using gulp with esbuild and your solidplugin. i also want to use the https://github.com/zziger/esbuild-ifdef plugin however, it doesn't seem to work. here's the code:

` const ifdefPlugin = require('esbuild-ifdef').default

function buildGridderJS() { return gulp .src('./' + gridderDir + '/tsx/gridderIndex.tsx') .pipe( gulpEsbuild({ outfile: 'gridder.app.min.js', bundle: true, plugins: [solidPlugin(), ifdefPlugin({ fillWithSpaces: true })], loader: { '.tsx': 'tsx', }, jsx: 'automatic' }) ) .pipe(gulp.dest(buildpath + 'gridder/assets/js/')) } `

when i use the code above, the ifdefplugin doesn't do anything. when i switch the plugins like: plugins: [ifdefPlugin({ fillWithSpaces: true }), solidPlugin()], then the ifdef plugin works. however, the solidplugin doesn't work and won't transform the output

i have tried this with another ifdef plugin: https://github.com/Jarred-Sumner/esbuild-plugin-ifdef and its exactly the same issue

do you know what might be going on here?

aunruh avatar Sep 13 '23 15:09 aunruh