Skip to content

Support new "using" keyword for disposable objects #5113

@hazae41

Description

@hazae41

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions