Skip to content

build: update to latest rules_nodejs - #27764

Closed
alexeagle wants to merge 1 commit into
angular:masterfrom
alexeagle:update_nodejs
Closed

alexeagle wants to merge 1 commit into
angular:masterfrom
alexeagle:update_nodejs

Conversation

@alexeagle

Copy link
Copy Markdown
Contributor

This includes a performance fix for module resolution in the common case under Ivy

@mary-poppins

Copy link
Copy Markdown

You can preview 89a02b0 at https://pr27764-89a02b0.ngbuilds.io/.

alexeagle pushed a commit to bazel-contrib/rules_nodejs that referenced this pull request Dec 20, 2018
Given `'rxjs/ajax/index.js'` as `path`, and the following resolutions:
```
var MODULE_ROOTS = [
  {module_name: /^rxjs\/ajax\/\b/, module_root: 'rxjs/ajax/'},
  {module_name: /^rxjs\/ajax\b/, module_root: 'rxjs/ajax/index.js'},
]
```

The current algorithm would disregard the first match because it left the string unchanged, even though it was the longest regex.

This caused it to return `rxjs/ajax/index.js/index.js` instead of `rxjs/ajax/index.js`.

Followup to #474, related to a failure observed in angular/angular#27764.
This includes a performance fix for module resolution in the common case under Ivy
@mary-poppins

Copy link
Copy Markdown

You can preview 1a43077 at https://pr27764-1a43077.ngbuilds.io/.

@alexeagle alexeagle added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Dec 20, 2018
@benlesh benlesh closed this in d1de9ff Dec 26, 2018
benlesh pushed a commit that referenced this pull request Dec 26, 2018
This includes a performance fix for module resolution in the common case under Ivy

PR Close #27764
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants