Skip to content

Commit

Permalink
feat: apply verbatimModuleSyntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Jun 15, 2023
1 parent f4a27dd commit 50fa325
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite/src/node/plugins/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type TSConfigJSON = {
preserveValueImports?: boolean
target?: string
useDefineForClassFields?: boolean
verbatimModuleSyntax?: boolean
}
[key: string]: any
}
Expand Down Expand Up @@ -111,6 +112,7 @@ export async function transformWithEsbuild(
'preserveValueImports',
'target',
'useDefineForClassFields',
'verbatimModuleSyntax',
]
const compilerOptionsForFile: TSCompilerOptions = {}
if (loader === 'ts' || loader === 'tsx') {
Expand Down

0 comments on commit 50fa325

Please sign in to comment.