Skip to content

Impossible to use cloudflare worker nodejs-compatibility mode due to transitive imports #37

@dsumac

Description

@dsumac

Context

Bug

  • to use native api, we have to activate compatibility mode without add polyfill
  • when we activate this option the worker expects an import like node:...
  • there is transitively an import without prefix

image

  • so we can not use your lib with native prefix import

Analysis

You use sha.js which use safe-buffer which uses native node Buffer api without node prefix import node:buffer

image

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