Spread transpilation issue with Array
-- downlevelIteration usage?
#659
Labels
problem: stale
Issue has not been responded to in some time
solution: duplicate
This issue or pull request already exists
solution: workaround available
There is a workaround available for this issue
topic: downlevelIteration
Related to tsconfig downlevelIteration
Milestone
Current Behavior
Suppose we have this code:
If I run the code within a test with
yarn test
(i.e.tsdx test
), everything is fine and the output is:If I build the library and import it in node, though, I get something different:
Expected behavior
I'd expect the built library imported in node to behave as it does in the tests:
Additional context
tsc test.ts
and thennode test.js
)arr3 = [...arr1, ...arr2]
) and it worksYour environment
The text was updated successfully, but these errors were encountered: