(id)
| 15 | const plugin: Plugin = { |
| 16 | name: 'p1', |
| 17 | resolveId(id) { |
| 18 | if (id === entryUrl) { |
| 19 | // The module hasn't been resolved yet, so its info is null. |
| 20 | const moduleInfo = this.getModuleInfo(entryUrl) |
| 21 | expect(moduleInfo).toEqual(null) |
| 22 | |
| 23 | return { id, meta: { x: 1 } } |
| 24 | } |
| 25 | }, |
| 26 | load(id) { |
| 27 | if (id === entryUrl) { |
| 28 | const { meta } = this.getModuleInfo(entryUrl) ?? {} |
nothing calls this directly
no test coverage detected