и посмотреть медиа
NOP - Nuances of Programming
и посмотреть медиа
Channel about nuances of programming, IT humor and remote vacancies. Fresh insights for developers.
Channel about nuances of programming, IT humor and remote vacancies. Fresh insights for developers.
NOP::Nuances of Programming - channel with in-depth analysis of programming subtleties, humor and selections of remote vacancies. Useful content for developers of all levels in Telegram.
4 КБ кода и 116 зависимостей: разбор одного npm-пакета Автор опубликовал крошечный React-компонент и потом честно проверил его как чужой. Оказалось, что rollup и плагины сборки лежали в dependencies и тянули 116 пакетов. Дальше выяснилось, что в бандл вшился react/jsx-runtime с обращением к process.env, которого в браузере нет. Плюс не было директивы "use client", и Next.js с App Router просто падал на импорте. Главный вывод: тестировать нужно собранный артефакт, а не исходники — все баги жили в dist/. Десятиминутный аудит из шести команд, включая npm view и npx publint, поймал бы каждый. 🔗 Подробнее @nuancesprog #Tools #React
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!