-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deno.bundle causes Assertion error in the TS compiler #7518
Comments
I thought we had an issue for this, but we don't. The title should be deno bundle doesnt support export * exports. |
TLDR: I suspect Additional Notes: Things like Pull Request: #7607 Wall of text: Removing the assertion removes the error, but the bundle still won't contain the expected exports from While debugging, I found this could be overcome by replacing the call to It looks like there are two differences between the functions:
After testing I found that 1. was the issue; The solution was:
if (importedFile.redirect) {
mappedUrl = importedFile.redirect;
} Repro'd tested the fix with the following: //comp.ts
const code = `
// foo.ts
export * from "./a.ts";
export * from "./b.ts";
`;
await Deno.bundle(
"/foo.ts",
{
"/foo.ts": code,
},
{
target: "es3",
module: "esnext",
},
); //a.ts
export default function(){
} //b.ts
export default function(){
} |
For |
#8060 is resolved... closing. |
Error
Steps to reproduce
where
a.ts
andb.ts
can be any valid typescript moduleDeno - 1.4.0
v8 - 8.7.75
typescript - 4.0.2
The text was updated successfully, but these errors were encountered: