/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/web/node-source/index.mjs
12 строк
388 B
Albus Dumbledore
Branding guide violation
11 фев 2020, 19:01
Не верифицирован
11 фев 2020, 19:01
3f594f7
Код
Авторство
О чём код?
// Block `require`, but keep webpack from trying to work around it. eval("require = undefined") it("should compile fine", () => { // It's okay if this executes fine or if `global` is not defined. If it // results in a `require()` call, this will throw a `TypeError` instead. try { global } catch (e) { if (!(e instanceof ReferenceError)) throw e } })