Skip to content

Terser should be reconfigured for modern output #14707

@Timer

Description

@Timer

When Next.js' experimental modern mode is used, the Terser settings for related bundles should be adjusted:

terserOptions.module = true
terserOptions.ecma = terserOptions.compress.ecma = terserOptions.output.ecma = 8

Currently, Terser always assumes an ES5 environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEasy to fix issues, good for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions