Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/wxt/src/builtin-modules/unimport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default defineWxtModule({
// Only create global types when user has enabled auto-imports
entries.push(await getImportsDeclarationEntry(unimport));

if (wxt.config.imports.eslintrc.enabled === false) return;
if (!wxt.config.imports.eslintrc.enabled) return;

// Only generate ESLint config if that feature is enabled
entries.push(
Expand Down
4 changes: 1 addition & 3 deletions packages/wxt/src/cli/cli-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ export function wrapAction(
consola.fail(
`Command failed after ${formatDuration(Date.now() - startTime)}`,
);
if (err instanceof ValidationError) {
// Don't log these errors, they've already been logged
} else {
if (!(err instanceof ValidationError)) {
consola.error(err);
}
process.exit(1);
Expand Down
3 changes: 1 addition & 2 deletions packages/wxt/src/core/utils/building/find-entrypoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ export async function findEntrypoints(): Promise<Entrypoint[]> {
(entry) =>
entry.name === name && entry.inputPath.endsWith('index.html'),
);
if (hasIndexHtml) return false;

return true;
return !hasIndexHtml;
});

await wxt.hooks.callHook('entrypoints:found', wxt, entrypointInfos);
Expand Down
Loading