Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

fix: optimize platform specific files resolver #782

Merged
merged 4 commits into from
Jan 30, 2019

Conversation

ventsislav-georgiev
Copy link
Contributor

@ventsislav-georgiev ventsislav-georgiev commented Jan 29, 2019

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"]

@sis0k0 sis0k0 merged commit 0d9ecec into master Jan 30, 2019
@sis0k0 sis0k0 deleted the vgeorgiev/optimize-resolver branch January 30, 2019 15:05
SvetoslavTsenov pushed a commit that referenced this pull request Feb 1, 2019
## 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"]`
SvetoslavTsenov added a commit that referenced this pull request Feb 1, 2019
* 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"]`

* release: cut the 0.19.2 release

* docs: update changelog
SvetoslavTsenov added a commit that referenced this pull request Feb 1, 2019
* 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"]`

* release: cut the 0.19.2 release

* docs: update changelog
SvetoslavTsenov added a commit that referenced this pull request Feb 1, 2019
* 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"]`

* release: cut the 0.19.2 release

* docs: update changelog
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants