/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/module/consume-webpack-runtime/runtime-const-require.js
6 строк
326 B
hai-x
fix: rename nested const/let __webpack_require__ declarations (#21508)
26 июл 2026, 15:53
Не верифицирован
26 июл 2026, 15:53
7d8d6f7
Код
Авторство
О чём код?
// webpack emits `const __webpack_require__ = {}` for its require scope when // the output environment allows ES6, so a nested bundle uses `const`, not `var` const __webpack_require__ = { foo: 42 }; const __webpack_exports__ = { foo: 42 }; export { __webpack_require__ as constRequire, __webpack_exports__ as constExports };