You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
constname='plugin1'// FAIL: doesn't resolve using tsconfig.json pathsconstfails=awaitimport(`#lib/${name}`)// OK: this works using a file pathconstworks1=awaitimport(`./${name}`)// OK: this works using tsconfig.json pathsconstworks2=awaitimport('#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)
https://esbuild.github.io/try/#YgAwLjIxLjUAewogIGJ1bmRsZTogdHJ1ZSwgCiAgZW50cnlQb2ludHM6IFsnLi9zcmMvaW5kZXgudHMnXSwKICBwbGF0Zm9ybTogJ25vZGUnLAogIGZvcm1hdDogJ2NqcycsCiAgbWFpbkZpZWxkczogWydtb2R1bGUnLCAnbWFpbiddLAp9AABzcmMvaW5kZXgudHMAZHluYW1pY0ZhaWxzVG9CdW5kbGUoKTsKCmFzeW5jIGZ1bmN0aW9uIGR5bmFtaWNGYWlsc1RvQnVuZGxlKCkgewogIGNvbnN0IG5hbWUgPSAncGx1Z2luMScKCiAgLy8gRkFJTDogZG9lc24ndCByZXNvbHZlIHVzaW5nIHRzY29uZmlnLmpzb24gcGF0aHMKICBjb25zdCBmYWlscyA9IGF3YWl0IGltcG9ydChgI2xpYi8ke25hbWV9YCkKCiAgLy8gT0s6IHRoaXMgd29ya3MgdXNpbmcgYSBmaWxlIHBhdGgKICAvLyBjb25zdCB3b3JrczEgPSBhd2FpdCBpbXBvcnQoYC4vJHtuYW1lfWApCgogIC8vIE9LOiB0aGlzIHdvcmtzIHVzaW5nIHRzY29uZmlnLmpzb24gcGF0aHMKICAvLyBjb25zdCB3b3JrczIgPSBhd2FpdCBpbXBvcnQoJyNsaWIvcGx1Z2luMScpCn0AAHNyYy9wbHVnaW4xL2luZGV4LnRzAGV4cG9ydCBjb25zdCB0ZXN0ID0ge30KY29uc29sZS5sb2coJ2hlbGxvJykAAHRzY29uZmlnLmpzb24AewogICJjb21waWxlck9wdGlvbnMiOiB7CiAgICAicGF0aHMiOiB7CiAgICAgICIjbGliLyoiOiBbCiAgICAgICAgIi4vc3JjLyovaW5kZXgiCiAgICAgIF0KICAgIH0KICB9Cn0
The text was updated successfully, but these errors were encountered: