/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/desktop/empty-module.js
9 строк
472 B
chrisnojima
move to vite (#29386)
09 июл 2026, 00:46
Не верифицирован
09 июл 2026, 00:46
bcd1945
Код
Авторство
О чём код?
/* global module */ // Empty CommonJS module used by the Vite desktop build to null out native-only // files and packages. Being CJS (not ESM), rolldown tolerates any named import // from it (resolving to `undefined`) instead of erroring on a missing export — // the same behavior webpack's null-loader gave. Distinct from null-module.js // (`module.exports = null`, used by Metro), whose null value rolldown can't // synthesize named exports from. module.exports = {}