Uh oh!
There was an error while loading. Please reload this page.
Add project source dir as a module solution - #2210
Conversation
This seems to only work with /src/
login/ # root module for checking auth, otherwise showing a signin/signup page
app/ # the actual app, only displayed when auth'edI think that we should have some kind of wildcard mapping, such that Maybe we need a module registry in the |
k1ng440
commented
Sep 20, 2016
i have tested bdb1953 and its works |
k1ng440
commented
Sep 20, 2016
@abner please update your branch |
abner
commented
Sep 20, 2016
OK @k1ng440 , it is updated now. |
abner
commented
Sep 20, 2016
There is a plan to merge it soon? Just asking because if is not going to be merged we will change our projects to temporarily reference a local version of angular-cli |
| "baseUrl": ".", | ||
| "paths": { | ||
| "@<%= prefix %>/*": ["app/*"], | ||
| "app/*": ["app/*"] |
There was a problem hiding this comment.
For the blueprint, including just @app might be a good idea to keep things simple. More of a preference thing though, i suppose.
There was a problem hiding this comment.
Actually, thinking about it a little bit. It might be better to just add support for paths and add defaults in a follow-up PR. Many people that want this will most likely customize anyway.
There was a problem hiding this comment.
ok, i will change to just get the paths defined in the tsconfig.json applied to webpack resolve without defaults.
There was a problem hiding this comment.
just removed this from the blueprint tsconfig.json
kylecordes
commented
Sep 21, 2016
I'm not sure this feature is actually a net good idea. I just wrote a comment about it in a similar item linked below. I'm not sure whether in the overall trade-off this is good or bad, but I think it's worthy of discussion before going in. |
clydin
commented
Sep 21, 2016
@kylecordes, I think adding support for typescript's |
ValeryVS
commented
Sep 21, 2016
Look at examples in #2254 |
abner
commented
Sep 21, 2016
changed the blueprint tsconfig.json to not have any path or baseUrl by default; |
| "target": "es5", | ||
| "typeRoots": [ | ||
| "../node_modules/@types" | ||
| ], |
There was a problem hiding this comment.
the baseUrl and paths setup was actually removed from the blueprint tsconfig.json, beside the erroneous commit message. 😄
ghost
commented
Sep 23, 2016
I'm so happy with this PR. Hope this will be merged soon, because this is the only thing blocking us from upgrading to the webpack version! |
k1ng440
commented
Sep 23, 2016
@rolandoldengarm me too. |
clydin
commented
Sep 23, 2016
@abner, you might want to squash commits and clean up the commit message to simplify a review. |
googlebot
commented
Sep 24, 2016
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
4425b4d to
e6deb5eComparegooglebot
commented
Sep 24, 2016
CLAs look good, thanks! |
filipesilva
commented
Sep 24, 2016
To be clear, this PR simply adds support to the I remember we had this at a point, but for some reason took it out. Maybe it was broken at the time. @hansl@TheLarkInn can you review? Both preferably. |
e6deb5e to
f5e47baComparef5e47ba to
2477e94Comparehansl
commented
Sep 27, 2016
We're moving away from using |
filipesilva
commented
Oct 2, 2016
Superseded by #2470. |
applemate
commented
Feb 17, 2017
@filipesilva I want to able to import like this, what I config before using it? I saw suggestion about this usage everywhere in this repo but nothing official about how to config. |
filipesilva
commented
Feb 17, 2017
@craigcosmo you can use the tsconfig |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Adding resolve alias
@prefixandappto webpack config and addingpaths@prefixandappto tsconfig.json. I think it fixes#1465This allows to import app modules using
or