fix(templates): put back args to watch in dev (#4033)

This commit is contained in:
Sandro Circi
2025-05-01 18:47:03 +02:00
committed by GitHub
parent 87a7828931
commit c5bdec0f64
3 changed files with 5 additions and 6 deletions

View File

@@ -51,8 +51,7 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record<string, an
}
// For local development, import directly from theme
const isUiDev = true
if (isUiDev) {
if (process.argv.includes('--uiDev')) {
const templatePath = fileURLToPath(new URL(`./theme/${kebabCase(component)}`, import.meta.url))
return [
`import template from ${JSON.stringify(templatePath)}`,