You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Uncaught (in promise) AssertionError: Assertion failed.
at Object.assert (deno:cli/rt/06_util.js:33:13)
at Object.bundle (deno:cli/rt/40_compiler_api.js:85:10)
Add export before the function declaration in my_ts.ts, run again, and it works
The text was updated successfully, but these errors were encountered:
It isn't the lack of exports... if you actually invoked the function greet() somewhere it would bundle fine.
We could react better, the the proper emit of this bundle, with dead-code elimination/tree branching is an empty string. We double check for undefined or null, instead of falsey values.
I don't think it is an issue with #8799 but will ensure I double check that.
Reproduction
Output:
Add
export
before the function declaration inmy_ts.ts
, run again, and it worksThe text was updated successfully, but these errors were encountered: