Skip to content

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

@aapoalas

Description

@aapoalas

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 => ...);

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions