Fix assets import from public in .svelte files
This commit is contained in:
parent
ab7b5ff490
commit
9e540b2c1f
@ -155,8 +155,9 @@ export function keycloakify(params: keycloakify.Params) {
|
|||||||
{
|
{
|
||||||
const isJavascriptFile = id.endsWith(".js") || id.endsWith(".jsx");
|
const isJavascriptFile = id.endsWith(".js") || id.endsWith(".jsx");
|
||||||
const isTypeScriptFile = id.endsWith(".ts") || id.endsWith(".tsx");
|
const isTypeScriptFile = id.endsWith(".ts") || id.endsWith(".tsx");
|
||||||
|
const isSvelteFile = id.endsWith(".svelte");
|
||||||
|
|
||||||
if (!isTypeScriptFile && !isJavascriptFile) {
|
if (!isTypeScriptFile && !isJavascriptFile && !isSvelteFile) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user