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

AMD module load with default and named exports may receive moduleData function from define.ts instead of result of calling said function #1

Open
aapoalas opened this issue Jan 16, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@aapoalas
Copy link
Owner

aapoalas commented Jan 16, 2020

AMD Module 1:

define("module-1", ["dep"], dep => ({
  a: "foo",
  b: dep,
}));

AMD Module 2:

define("module-2", ["module-1"], mod1 => ({
  default: "x",
  extra: mod1
}));

Now

load("module-2").then(mod2 => console.log(mod2)); // () => Promise.all(resolveDependencies(...)).then(deps => ...);
@aapoalas aapoalas added the bug Something isn't working label Jan 16, 2020
@aapoalas aapoalas self-assigned this Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant