class Test {
test = true;
}
export default Test;
import Test1 from "./a.js"; // Not "Test" to avoid name conflict. It must be "Test1" for this reason.
// This class, defined in a separate package, extends the base class with additional features.
class Test extends Test1 {}
export default Test;
The reference type does not indicate whether this is a renamed default export.
My question is about how this should work and what the correct usage is.
Should my reference be:
{
"name": "default",
"module": "a.js"
}
And if I need the declaration, should I look it up in the exports of "a.js" to find the actual declaration name before working with it?
If so, there’s a bug in the auto-merger, because it doesn’t merge parent and child declarations.