Open aoisummer opened 3 years ago
Hmm, harp doesn't yet expose this yet but it makes sense to do so. Are you aware of how to configure esbuild?
Maybe I can understand the reason for doing that, but it's actually limit the browser support for this feature, by the way the follow code is an example:
require('esbuild').build({
entryPoints: ['src/test.jsx'],
bundle: true,
outfile: 'dist/test.js',
target: 'es5', // <- here
});
Thanks. I'll see what I can do.
Is there any options to config the target of esbuild? I want to compile code to es5 to be compatible with more browsers.