Skip to content

TypeScript - terser is not callable #1574

Description

@RobertSandiford

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

  1. RobertSandiford commented on Sep 3, 2023

    @RobertSandiford
    Author

    Sorry TS playground is being buggy. Go to TS Config -> Target and set it to ES2022. Then the error appears.

  2. locked and limited conversation to collaborators on Sep 3, 2023
  3. converted this issue into a discussion #1575 on Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions