diff --git a/.vscode/settings.json b/.vscode/settings.json index a29b249..feec51e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,5 +9,8 @@ "overrides": "esbuild" } ], - "typescript.tsdk": "node_modules\\typescript\\lib" + "typescript.tsdk": "node_modules\\typescript\\lib", + "conventionalCommits.scopes": [ + "esbuild" + ] } diff --git a/source/index.ts b/source/index.ts index b40fc30..2794e00 100644 --- a/source/index.ts +++ b/source/index.ts @@ -53,7 +53,6 @@ export function fastTypescript( // Resolve the tsconfig option. if (typeof tsConfig === 'function') tsConfig = await tsConfig() - if (tsConfig === true) tsConfig = './tsconfig.json' else if (!tsConfig) @@ -78,7 +77,6 @@ export function fastTypescript( let tsConfigBasePath: string, tsConfigParsed: ts.ParsedCommandLine, tsDiagnostics: ts.Diagnostic[] = [] - if (typeof tsConfig === 'string') { tsConfig = path.resolve(tsConfig) tsConfigBasePath = path.dirname(tsConfig) diff --git a/source/transformers/esbuild.ts b/source/transformers/esbuild.ts index 4c5e2f4..2167006 100644 --- a/source/transformers/esbuild.ts +++ b/source/transformers/esbuild.ts @@ -65,8 +65,8 @@ export default { jsxImportSource: compilerOptions.jsxImportSource, jsxSideEffects: true, minify: false, - treeShaking: false, - ignoreAnnotations: true, + treeShaking: true, + ignoreAnnotations: false, logLevel: 'silent', tsconfigRaw: {