(
/** @type {Record<string, unknown> | undefined} */ progressOptions = undefined
)
| 38 | }; |
| 39 | |
| 40 | const createSimpleCompiler = ( |
| 41 | /** @type {Record<string, unknown> | undefined} */ progressOptions = undefined |
| 42 | ) => { |
| 43 | const compiler = webpack({ |
| 44 | context: path.join(__dirname, "fixtures"), |
| 45 | entry: "./a.js", |
| 46 | infrastructureLogging: { |
| 47 | debug: /Progress/ |
| 48 | }, |
| 49 | plugins: [ |
| 50 | new webpack.ProgressPlugin({ |
| 51 | activeModules: true, |
| 52 | ...progressOptions |
| 53 | }) |
| 54 | ] |
| 55 | }); |
| 56 | |
| 57 | compiler.outputFileSystem = /** @type {import("../").OutputFileSystem} */ ( |
| 58 | /** @type {unknown} */ (createFsFromVolume(new Volume())) |
| 59 | ); |
| 60 | |
| 61 | return compiler; |
| 62 | }; |
| 63 | |
| 64 | const createSimpleCompilerWithCustomHandler = ( |
| 65 | /** @type {Record<string, unknown> | undefined} */ options = undefined |
no test coverage detected