Skip to content

Commit

Permalink
Remove unused ts-expect-erro
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Dec 23, 2023
1 parent 6e35f60 commit d5b8915
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,17 +239,12 @@ export function generateTsupOptions(

if (!type.dev && options.drop_console) es_options.drop = ['console', 'debugger']

return options.modify_esbuild_options(
// @ts-expect-error tsup is in esbuild 0.18
es_options,
item,
)
return options.modify_esbuild_options(es_options, item)
},
outExtension({ format }) {
if (format === 'esm' && type.jsx) return { js: '.jsx' }
return {}
},
// @ts-expect-error tsup is in esbuild 0.18
esbuildPlugins: !type.jsx
? [
solidPlugin({ solid: { generate: type.server ? 'ssr' : 'dom' } }),
Expand Down

0 comments on commit d5b8915

Please sign in to comment.