-
Notifications
You must be signed in to change notification settings - Fork 792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External lib included causes duplicate TS helpers and runtime error #1080
Comments
stencil.config.ts
this doesn't work after all the first var __extends is not always added to the esm file |
@manucorporat I believe you were looking into this. |
If we add If this approach is ok, and you want me too, I can tidy test and PR a new branch based on current master. |
FYI using the version 14.0.0-1 works fine, however, the code produced causes the angular compiler to fall over |
The original issue should be fixed with the latest build. Thanks for the report. |
Stencil version:
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:
Rxjs gets included in built component this includes a "function __external"
TS helper var _external is also emitted and they clash causing runtime error
Expected behavior:
Steps to reproduce:
I made a repro repo and included the built files
https://github.com/MrAntix/stencil-ts-duplicate-helper/blob/master/components/dist/esm/es5/build/my-component.js
https://github.com/MrAntix/stencil-ts-duplicate-helper
Related code:
see image lines 1 and 36
Other information:
The text was updated successfully, but these errors were encountered: