(build)
| 213 | const contentlayerGenPlugin = (): esbuild.Plugin => ({ |
| 214 | name: 'contentlayer-gen', |
| 215 | setup(build) { |
| 216 | build.onResolve({ filter: /contentlayer\/generated/ }, (args) => ({ |
| 217 | path: args.path, |
| 218 | namespace: 'contentlayer-gen', |
| 219 | })) |
| 220 | |
| 221 | build.onLoad({ filter: /.*/, namespace: 'contentlayer-gen' }, () => ({ |
| 222 | contents: '// empty', |
| 223 | })) |
| 224 | }, |
| 225 | }) |
| 226 | |
| 227 | // TODO also take tsconfig.json `paths` mapping into account |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…