Skip to content

Commit

Permalink
fix: wrong cache when tsconfig declaration changed (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Mar 16, 2023
1 parent 9c35e88 commit c38c56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builder/bundless/loaders/index.ts
Expand Up @@ -66,8 +66,8 @@ export default async (
if (cacheRet)
return Promise.resolve<ILoaderOutput>({
...cacheRet,
outputOpts: {
...cacheRet.outputOpts,
options: {
...cacheRet.options,
// FIXME: shit code for avoid invalid declaration value when tsconfig changed
declaration: /\.tsx?$/.test(fileAbsPath)
? getTsconfig(opts.cwd)?.options.declaration
Expand Down

0 comments on commit c38c56f

Please sign in to comment.