Skip to content

Commit

Permalink
fix: jsxDev compatibility with older esbuild versions, closes #351
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Aug 26, 2022
1 parent 61df802 commit 2df49f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Expand Up @@ -161,7 +161,8 @@ export default ({
jsxFactory: defaultOptions.jsxFactory,
jsxFragment: defaultOptions.jsxFragment,
jsx: defaultOptions.jsx,
jsxDev: defaultOptions.jsxDev,
// Compat: passing this option in older esbuild version will result in error
...(defaultOptions.jsxDev ? { jsxDev: true } : {}),
sourcemap: sourceMap,
sourcefile: id,
...esbuildOptions,
Expand Down

0 comments on commit 2df49f4

Please sign in to comment.