The sample code for @rollup/plugin-terser is not working for me The error can be seen on TS Playground here: https://www.typescriptlang.org/play?target=99&moduleResolution=99&module=199&declaration=false&esModuleInterop=false&jsx=1#code/JYWwDg9gTgLgBDAplAzsuAzKERwOQAC2ANsQK5gD0Y5A5sAHYC0SqyeA3ALABQviAD0iw4AE0QYAhmWLwA3rzhxGYMjABc+FFADGlRuIEA6AFYo8AGkVwIa1RrgKeSpaOBRNeWzHuXrSjGgQSQc8HTM8awBfK2c4GjJ6BhRNAG1WNCgACgBKAF1eKI4gA Settings can be viewed on TS playground, generally modern environment e.g. module and module resolution: NodeNext
Activity
RobertSandiford commentedon Sep 3, 2023
Sorry TS playground is being buggy. Go to TS Config -> Target and set it to ES2022. Then the error appears.