Skip to content

Commit

Permalink
fix: no need to wait in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
2heal1 committed Jan 21, 2025
1 parent 03d9a3b commit 8d84222
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions packages/manifest/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,35 +308,6 @@ export function getTypesMetaInfo(
const zip = path.join(zipPrefix, zipName);
const api = path.join(zipPrefix, apiFileName);

const getTargetFile = (filename: string) => {
try {
if (!isDev()) {
return Boolean(compilation.getAsset(path.join(zipPrefix, filename)));
}
return Boolean(fs.readFileSync(filename));
} catch (e) {
return false;
}
};

if (!zip || !getTargetFile(zipName)) {
return {
path: '',
name: '',
zip: '',
api: '',
};
}

if (!api || !getTargetFile(apiFileName)) {
return {
path: '',
name: '',
zip,
api: '',
};
}

return {
path: '',
name: '',
Expand Down

0 comments on commit 8d84222

Please sign in to comment.