Skip to content

Commit

Permalink
fix(optimizer): externalize jsx/tsx files in dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 19, 2021
1 parent 038f786 commit 37a103f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vite/src/node/optimizer/esbuildDepPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ const externalTypes = [
// known SFC types
'vue',
'svelte',
// JSX/TSX may be configured to be compiled differently from how esbuild
// handles it by default, so exclude them as well
'jsx',
'tsx',
...KNOWN_ASSET_TYPES
]

Expand Down

0 comments on commit 37a103f

Please sign in to comment.