mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
remote-tools-imports/no-foreign-imports-in-remote-closure flags any identifier inside an itremote()/remotely() closure that is bound to an import from somewhere other than spec/lib/remote-tools. Those bindings get rewritten to __vite_ssr_import_N__ by vite's SSR transform and fail when the closure is stringified and eval'd in a remote context. Skips type-only imports and type-annotation positions. Currently flags 50 sites across 5 files (node, webview, chromium, fuses, api-native-image).