fix: update Tauri shell import to use Vite ignore for compatibility
This commit is contained in:
@@ -7,7 +7,7 @@ export const openExternalUrl = async (url: string): Promise<void> => {
|
|||||||
if (typeof window !== 'undefined' && (window as any).__TAURI__) {
|
if (typeof window !== 'undefined' && (window as any).__TAURI__) {
|
||||||
try {
|
try {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const { open } = await import('@tauri-apps/plugin-shell');
|
const { open } = await import(/* @vite-ignore */ '@tauri-apps/plugin-shell');
|
||||||
await open(url);
|
await open(url);
|
||||||
return;
|
return;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user