Skip to content

Updater terser to 5.20.0 #579

@peratik

Description

@peratik

Bug report

next.js uses terser-webpack-plugin and it uses "terser": "^5.19.2"

more information is here: terser/terser#1451

Actual Behavior

Next.js Build failed since there is an Unexpected token: punc ({) error which is related to terser-webpack-plugin that uses old version of terser

Expected Behavior

Next.js build should be success after updating terser to 5.20.0 version

How Do We Reproduce?

  1. install the latest next.js version (13.5.1)
  2. install kaboom (https://github.com/replit/kaboom)
  3. import kaboom and use it (you can use combine with react? replit/kaboom#74 (comment) snippet)
  4. try to run npm run build

Please paste the results of npx webpack-cli info here, and mention other relevant information

It is inside next.js, we can't do that. it shows:

Need to install the following packages: [email protected]

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