Skip to content

Broken in Node.js v18. #454

Closed
Closed

Description

@Qard

Apparently this module environment detects the browser by looking for the "fetch" function but fetch is now available in Node.js v18. It no longer works in Node.js because it thinks it's a browser. 😐

Activity

  1. maxmilton commented on Apr 24, 2022

    @maxmilton

    Reading through terser/terser#1164 it seems Node.js detection was already fixed years ago back in 2018 but never released. Looks like issue #452 is about publishing a new release.

  2. jacobq commented on May 17, 2022

    @jacobq

    Duplicate of #432 / #452

  3. eemeli commented on Jun 6, 2022

    @eemeli
    Member

    This is fixed in source-map@0.7.4.

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

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions