angular2-template-loader icon indicating copy to clipboard operation
angular2-template-loader copied to clipboard

Avoid to append ./ automatically

Open 0cv opened this issue 9 years ago • 2 comments

Currently, due to ./ being appended automatically to any file, it's not possible to resolve node_modules for example.

Will solve https://github.com/TheLarkInn/angular2-template-loader/issues/31

Could break other projects which are not appending ./ for resolving local files.

0cv avatar Oct 10 '16 13:10 0cv

See https://github.com/TheLarkInn/angular2-template-loader/issues/31#issuecomment-253683815

This needs to be approached in a creative manner that still stands true to the intentional design of the loader.

TheLarkInn avatar Oct 14 '16 01:10 TheLarkInn

eventually it should check whether the file exists in the current path, and if not resolve the node_modules... But it's error prone if 2 files / modules come with the same name.

0cv avatar Oct 14 '16 07:10 0cv