Fix vite quitting if custom handler implemented

This commit is contained in:
Joseph Garrone
2024-10-06 22:55:18 +02:00
parent 12534e57ad
commit f6b48c88b9
8 changed files with 111 additions and 110 deletions

View File

@ -9,11 +9,15 @@ import { maybeDelegateCommandToCustomHandler } from "./shared/customHandler_dele
export async function command(params: { buildContext: BuildContext }) {
const { buildContext } = params;
maybeDelegateCommandToCustomHandler({
const { hasBeenHandled } = maybeDelegateCommandToCustomHandler({
commandName: "initialize-email-theme",
buildContext
});
if (hasBeenHandled) {
return;
}
const emailThemeSrcDirPath = pathJoin(buildContext.themeSrcDirPath, "email");
if (