stop vite from complaining about imports

This commit is contained in:
Jacob Overgaard
2023-05-26 15:10:02 +02:00
parent ede5ad49ce
commit 1851bd71c1

View File

@@ -8,7 +8,7 @@ export async function loadExtension<T = unknown>(manifest: ManifestWithLoader<T>
}
if (isManifestJSType<T>(manifest) && manifest.js) {
return await import(manifest.js);
return await import(/* @vite-ignore */ manifest.js);
}
} catch (err: any) {
console.warn('-- Extension failed to load script', manifest, err);