FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Store the noconflict aliases in the global loader object by rajasegar · Pull Request #205 · ember-cli/loader.js · GitHub

Repository navigation

Store the noconflict aliases in the global loader object - #205

Open
rajasegar wants to merge 4 commits into
ember-cli:masterfrom
rajasegar:no-conflict
Open

rajasegar wants to merge 4 commits into
ember-cli:masterfrom
rajasegar:no-conflict

Conversation

Copy link
Copy Markdown

Fixes #204

rajasegar changed the title No conflict Store the noconflict aliases in the global loader object Jan 18, 2021
Comment thread lib/loader/loader.js
return window[loader.__aliases.require](resolve(dep, id));
} else {
return require(resolve(dep, id));
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Alternatively, can be written like this:

const requireReference =
  loader.__aliases && loader.__aliases.require
    ? window[loader.__aliases.require]
    : require;

return requireReference(resolve(dep, id));

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Store the noconflict aliases

2 participants


Back | FazBrowse Home | New Git URL