We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cb0cc9 + f934d88 commit bd784a7Copy full SHA for bd784a7
types/publish.mjs
@@ -563,6 +563,14 @@ export function rewriteModule(code, moduleName) {
563
let source = path.node.source;
564
if (isStringLiteral(source)) {
565
source.value = normalizeSpecifier(moduleName, source.value);
566
+
567
+ // This makes it so that the types we publish point to the types defined
568
+ // by `backburner.js`, basically doing the type-time equivalent of the
569
+ // no good, very bad runtime shenanigans Ember does... *somewhere*... in
570
+ // the build to make `import Backburner from 'backburner'` work.
571
+ if (source.value === 'backburner') {
572
+ source.value = 'backburner.js';
573
+ }
574
}
575
this.traverse(path);
576
},
0 commit comments