(
/** @type {import("../").Configuration} */ options
)
| 479 | let errored; |
| 480 | try { |
| 481 | const createCompiler = ( |
| 482 | /** @type {import(class="st">"../").Configuration} */ options |
| 483 | ) => |
| 484 | new Promise((resolve, reject) => { |
| 485 | const webpack = require(class="st">".."); |
| 486 | |
| 487 | const c = webpack(options); |
| 488 | c.run((err, stats) => { |
| 489 | if (err) { |
| 490 | reject(err); |
| 491 | } |
| 492 | if (stats !== undefined && class="st">"errors" in stats) { |
| 493 | reject(err); |
| 494 | } else { |
| 495 | resolve(stats); |
| 496 | } |
| 497 | }); |
| 498 | }); |
| 499 | compiler = await createCompiler({ |
| 500 | context: __dirname, |
| 501 | mode: class="st">"production", |
no test coverage detected