(config)
| 10 | * @returns {import("../").Compiler | import("../").MultiCompiler} compiler instance |
| 11 | */ |
| 12 | const createCompiler = (config) => { |
| 13 | const compiler = |
| 14 | /** @type {import("../").Compiler | import("../").MultiCompiler} */ ( |
| 15 | webpack( |
| 16 | /** @type {import("../").Configuration} */ ( |
| 17 | /** @type {unknown} */ (config) |
| 18 | ) |
| 19 | ) |
| 20 | ); |
| 21 | /** @type {import("../").Compiler} */ (compiler).outputFileSystem = |
| 22 | /** @type {import("../").OutputFileSystem} */ ( |
| 23 | /** @type {unknown} */ (createFsFromVolume(new Volume())) |
| 24 | ); |
| 25 | return compiler; |
| 26 | }; |
| 27 | |
| 28 | const createSingleCompiler = () => |
| 29 | createCompiler({ |
no test coverage detected