feature(import resolving): ability to import (ts, sass etc.) with path alias#2392
feature(import resolving): ability to import (ts, sass etc.) with path alias#2392ValeryVS wants to merge 1 commit intoangular:masterfrom
Conversation
040ca4c to
d3455e1
Compare
d3455e1 to
94962e7
Compare
|
Another PR solving this issue :) Hope this one will be approved and merged! Good stuff. |
|
This works but is fairly fragile. The As an alternate solution (for typescript), the new loader could be extended to fully support typescript's As to stylesheets, exposure of the underlying preprocessor include path settings could be a solution. |
|
Superseded by #2470. |
|
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. |
Closes #1465 #2254
Example imports
before
after
Why not just use tsconfig.json?
1.
Because tsconfig.'s paths and webpack's alias syntax is different.
You can use
for child directories or
for app directory itself in tsconfig, but you need
in webpack's resolve configuration.
2.
Because these aliases also affect sass imports.