webpack/test/fixtures/errors/throw-error-plugin.js

8 lines
159 B
JavaScript

module.exports = {
apply(compiler) {
compiler.hooks.compilation.tap("Errors.test-unhandled-throws", compilation => {
throw new Error('foo');
});
}
};