Closed aeisenberg closed 7 years ago
Hmmm...I am now taking a look at the npm packages in the @uirouter
namespace. They don't appear to have typescript sources either. So, I would guess that things are broken for these packages as well.
And looking a bit deeper into the source maps, I see entries like the following: /Users/cthielen/projects/uirouter/angularjs/node_modules/@uirouter/core/src/common/predicates.ts
.
So, it looks like there are two problems here and the problems are most likely present in both the bower and the npm versions of the package:
I am updating the title of this report accordingly.
I can submit a PR for this. It is easy enough to ensure that *.ts files are included in npm and bower builds, but I am not sure how rollup generates its sourcemaps. So, I don't know how to fix full paths in sources files.
If someone could give me a pointer, I would submit a fix for this. Thanks.
I think the PRs I submitted above are enough to fix this issue.
My version of UI-Router is: 1.0.3
Bug Report
Current Behavior:
Cannot set breakpoints in any ui-router files in Chrome Dev Tools. Cannot step through any ui-router files in Chrome Dev Tools.
Steps to reproduce:
bower_components/angular-ui-router/release/angular-ui-router.js
(or any other file in the ui-router project)There are other problems related to this bug, including the inability to run karma tests that rely on sourcemaps.
Analysis
The sourcemaps appear to be broken. Open up the file
releases/angular-ui-router.js.map
and you can see that it references a bunch of sources, like this:None of these files exist in the bower component.
The solution I would suggest would be to ensure that typescript files are included in the bower component.