This repository has been archived by the owner on Aug 7, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: optimize platform specific files resolver (#782)
## What is the current behavior? The platform specific files resolver for `.tns`, `.ios`, `.android` files is having performance issues on webpack and seems to break (make it run very slow like its for the first time) the incremental compilation. This is happening in big projects with many files in the `node_modules` directory, as the current implementation makes a file system call for each file. ## What is the new behavior? The resolver now handles only the files that are considered to support platform specific names e.g: * packages in `node_modules` with `nativescript`, `tns` or `ns` anywhere in the name * only files with following extensions: `[".ts", ".js", ".scss", ".less", ".css", ".html", ".xml", ".vue", ".json"]`
- Loading branch information