Output target collection does not transpile ts path config
@stencil/[email protected]>
I'm submitting a:
[x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
When setting paths in tsconfig:
"paths": { "@utils/*": ["./app/utils/*"] }
it gets transpiled to this in output target collection.
import("@utils/xxx"))
Other output targets work fine.
Expected behavior: It should resolve to the correct file path from ts config and not the alias.
I have the same problem
We are running into the same issue. I have provided a GitHub repo: https://github.com/liamdebeasi/stencil-alias
Steps to reproduce:
- Clone repo.
- Run
npm install. - Run
npm run start. Observe that there are no errors. - Quit the dev server.
- Run
npm run build. - Open
dist/collection/components/my-component/my-component.js. Observe that theformatis still being imported from@utils/utils; - Open
dist/components/my-component.js. Observe that theformatutil is correctly inlined.
Thanks all! I spoke with @liamdebeasi about this issue today and confirmed its an issue. I've labeled it so that it gets ingested into our backlog
A fix for this bug has been release as a part of Stencil v2.18.0. I'm going to close this issue, but please feel free to open a new issue should the bug reoccur. Thanks!