/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/desktop/empty-esm.js
8 строк
546 B
chrisnojima
move to vite (#29386)
09 июл 2026, 00:46
Не верифицирован
09 июл 2026, 00:46
bcd1945
Код
Авторство
О чём код?
// Self-contained ESM empty module, safe to serve directly in the Vite dev server. // The `export *` (from an empty ESM module) makes es-module-lexer treat the export // list as opaque, so dev skips its strict named-export check — `import {X}` from a // nulled native file resolves to undefined at runtime instead of erroring. Used for // the native-file null fallback in dev; the prod build uses the CJS empty-module.js // (rolldown tolerates missing named imports there via CJS interop). export default {} export * from './empty-esm-star.js'