/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/development/broken-webpack-plugin/next.config.js
16 строк
305 B
Tim Neutkens
Convert test/integration to isolated tests (#93247)
11 май 2026, 14:55
Не верифицирован
11 май 2026, 14:55
8141dcf
Код
Авторство
О чём код?
class BrokenPlugin { apply(compiler) { compiler.hooks.watchRun.tapPromise('BrokenPlugin', async () => { throw new Error('oops') }) } } module.exports = { webpack(config, { isServer }) { if (!isServer) { config.plugins.push(new BrokenPlugin()) } return config }, }