Skip to content

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

Store the noconflict aliases in the global loader object#205
rajasegar wants to merge 4 commits into
ember-cli:masterfrom
rajasegar:no-conflict

Conversation

@rajasegar

Copy link
Copy Markdown

Fixes#204

@rajasegarrajasegar changed the title No conflictStore the noconflict aliases in the global loader objectJan 18, 2021
Comment threadlib/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.

Alternatively, can be written like this:

constrequireReference=loader.__aliases&&loader.__aliases.require
? window[loader.__aliases.require]
: require;returnrequireReference(resolve(dep,id));

Sign up for freeto 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

@rajasegar@lolmaus