Describe what esbuild is doing incorrectly and what it should be doing instead.
Dynamic imports with string literal templates are not resolved when using tsconfig paths
Example overview (see link below to reproduce)
const name = 'plugin1'
// FAIL: doesn't resolve using tsconfig.json paths
const fails = await import(`#lib/${name}`)
// OK: this works using a file path
const works1 = await import(`./${name}`)
// OK: this works using tsconfig.json paths
const works2 = await import('#lib/plugin1')
Describe what esbuild is doing incorrectly and what it should be doing instead.
Dynamic imports with string literal templates are not resolved when using tsconfig paths
Example overview (see link below to reproduce)