-
Notifications
You must be signed in to change notification settings - Fork 138
/lib and /lib-esm included in build #216
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
Comments
@dcarabott can you please link to the POC project |
@dcarabott ping? |
@christopherthielen We were working on a huge angular-seed as a POC (using I've created another smaller POC using the same I'm going to provide as much detail as possible for completeness sake. Huge angular-seed POC where issue was observed https://github.com/dcarabott/angular-seed-ui-router-poc This POC is using the Steps to reproduce:
This seed makes use of a number of tools/tasks and we're mostly interested in the The Simple POC where issue is not observed https://github.com/dcarabott/ng-5-ui-router-poc This POC is using the Steps to reproduce
Rollup config: This POC is building just |
small update, I've determined that
Maybe this is the problem? Perhaps there is some way to structure the ui-router libs' |
I've created a minimal reproduction of this scenario: https://github.com/christopherthielen/bundled-lib-esm-and-lib Basically, a pure JS library exports a symbol. Then an angular library uses that symbol as a DI token. The DI token is imported as a deep import |
I'm punting on further analysis. I'm adding an |
My assumption is that Angular will support the v3 metadata file for the next few versions, then this will be a non-issue after version 7+. If the metadata file format gets revised for angular v6-7, then we can re-generate and statically commit it the metadata file in |
We're removing the |
Removing this file seems to have broken our (very outdated) app. We recently started receiving this error at runtime:
Appears to be fixed by manually pinning the peer dependency in
|
From @dcarabott on January 15, 2018 10:32
After upgrading to ng5 and using
@uirouter/[email protected]
and@uirouter/[email protected]
the build ends up including bothlib
andlib-esm
. Bundle was inspected usingsource-map-explorer
.Build process:
We're using rollup with the following config:
main.prod.ts
Previously we were using
@uirouter/[email protected]
and[email protected]
and this issue was not observed.The build process didn't change.
We recreated the issue on a simple POC with one parent state, a child state and a sticky state. Nothing fancy. When importing we always import using
@uirouter/angular
Let me know if you would need a POC project since I can't replicate the issue on plunker.
Copied from original issue: ui-router/core#113
The text was updated successfully, but these errors were encountered: