fix(desktop): Enhance import resolver for platform-specific modules

- Update specific import plugin to handle `@follow/` imports
- Extend import resolution logic for platform-specific components

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2025-03-04 18:40:26 +08:00
parent 62b3b8fe89
commit 7382a03e0a
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export function createPlatformSpecificImportPlugin(platform: Platform): Plugin {
if (importer.includes("node_modules")) return null
const [path, query] = source.split("?")
if (path.startsWith(".") || path.startsWith("/")) {
if (path.startsWith(".") || path.startsWith("/") || path.includes("@follow/")) {
let priorities: string[] = []
switch (platform) {
case "electron": {