sarsamurmu/reboost

"esbuildPlugin - jsx.target" mismatch type declaration

GHNewbiee opened this issue · 3 comments

In esbuildPlugin, jsx.target property gives an error. See photo below.

Screenshot

You are doing it wrong, it should be like this

{
  loaders,
  jsx: {
    fragment,
    factory
  },
  target,
  minify,
  define
}

Yes, sorry!

Just for reference: In case that esbuildPlugin.config.js is used then the following has to be added at the beginning of the file:

/** @type import('reboost').esbuildPlugin['esbuildPluginOptions'] */

Also you can do /** @type import('reboost').PluginOptions['esbuild'] */