Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add define.default #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add define.default #138

wants to merge 1 commit into from

Conversation

stefanpenner
Copy link
Contributor

No description provided.


```js
define('foo', [], () => 'hi');
define.default('foo', 'foo/bar/baz');
Copy link
Member

Choose a reason for hiding this comment

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

I think your params are swapped here

Copy link
Member

Choose a reason for hiding this comment

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

Ya, confirm. Also in the section header...


```js
define('foo', [], () => 'hi');
define.default('foo', 'foo/bar/baz');
Copy link
Member

Choose a reason for hiding this comment

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

Ya, confirm. Also in the section header...

@@ -265,8 +265,9 @@ var loader, define, requireModule, require, requirejs;
// we don't support all of AMD
// define.amd = {};

function Alias(id) {
function Alias(id, prop) {
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem used, revert?

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.

3 participants