(config)
| 15 | } |
| 16 | |
| 17 | function runRspack(config) { |
| 18 | return new Promise((resolve, reject) => { |
| 19 | rspack(config, (err, stats) => { |
| 20 | if (err) return reject(err); |
| 21 | if (stats.hasErrors()) { |
| 22 | const info = stats.toJson({ all: false, errors: true }); |
| 23 | return reject(new Error(info.errors.map((e) => e.message).join("\n"))); |
| 24 | } |
| 25 | resolve(stats); |
| 26 | }); |
| 27 | }); |
| 28 | } |
| 29 | |
| 30 | export async function importBundledModule(entryPath, { globals = {} } = {}) { |
| 31 | const previous = new Map(); |
no test coverage detected