-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Support new "using" keyword for disposable objects #5113
Comments
It also crashes on latest
|
For Rollup V3, we need to wait for acorn.js to support parsing |
Thanks for the tip, |
The issue seems to be related to either |
|
@TrickyPi I am not familiar at all with the rollup codebase, but do you have any idea on how we could have this supported in rollup 4 ? ie setting usingDecl to true in the internal rollup parser ? |
This issue has been resolved via #5444 as part of rollup@4.14.0. You can test it via |
Rollup Version
3.28.1
Operating System (or Browser)
macOS
Node Version (if applicable)
20.3.1
Link To Reproduction
https://stackblitz.com/edit/rollup-repro-zruwr9?file=src%2Fmain.ts
Expected Behaviour
It should build successfully if using TypeScript 5.2 and latest
tslib
,@rollup/plugin-typescript
Actual Behaviour
Error on build:
RollupError: Unexpected token (Note that you need plugins to import files that are not JavaScript)
The text was updated successfully, but these errors were encountered: