Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Compiler not allows to import packages, whose name contains dot (e.g. "angular.com") #20363
I'm submitting a...
In compiler_host.ts, there is a const NODE_MODULES_PACKAGE_NAME which is a regex, that should validate if a package is from node_modules... but this regex is invalid, as it do not match packages, whose name contains dot (".", eg. "angular.com"). Because of that, when one library requires other library (with name containing dot), compiler throws error "Trying to import a source file from a node_modules package".
Link to const:
Node package name may contain dots, so it should be allowed to import that kind of packages and angular compiler should not make any problems ;-).