Skip to content

Restore development build#634

Merged
yarastqt merged 1 commit intobem:masterfrom
shlensky:feat/restore-development-build
Feb 24, 2026
Merged

Restore development build#634
yarastqt merged 1 commit intobem:masterfrom
shlensky:feat/restore-development-build

Conversation

@shlensky
Copy link
Contributor

Summary

Восстанавливает development-сборку, которая была утеряна в коммите 7ef51f8 (feat: support esm modules).

Changes

  • scripts/rollup/terser.config.js — добавлен конфиг минификатора для production-сборок
  • scripts/rollup/build.js — теперь генерирует 4 файла вместо 2:
    • *.production.min.cjs / *.production.min.mjs — production (минифицированы, __DEV__ = false)
    • *.development.cjs / *.development.mjs — development (без минификации, __DEV__ = true)
  • index.cjs — роутеры в пакетах core, di, classname, classnames для выбора сборки по NODE_ENV
  • package.json — обновлены exports с условиями development/production, import приоритетнее require

- Add terser.config.js for production minification
- Update build.js to generate 4 outputs: production.min + development (cjs/mjs)
- Add index.cjs routers for NODE_ENV-based selection
- Update package.json exports with development/production conditions
- Prefer import over require in exports order
@yarastqt yarastqt merged commit a47b621 into bem:master Feb 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants