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:
parent
62b3b8fe89
commit
7382a03e0a
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue