/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/api-plugin/issues-20139/index.js
13 строк
463 B
Xiao
feat: adds the global variable `__webpack_global__` for this compilation (#20170)
02 дек 2025, 16:49
Не верифицирован
02 дек 2025, 16:49
5983843
Код
Авторство
О чём код?
import * as foo from "./foo"; import { bar } from "./bar"; it("should load module with nested __webpack_require__", () => { expect(foo).toBeDefined(); expect(bar).toBe("bar"); }); it("should provide __webpack_global__ when module uses __webpack_require__", () => { expect(__webpack_require__.myCustomProperty).toBe("myCustomProperty"); expect(__webpack_global__.anotherProperty).toBe("anotherProperty"); expect(__webpack_global__.bar).toBe("bar"); });