Skip to content

buffer package missing(?) as dependency #3188

@Patrick-Clausen

Description

@Patrick-Clausen

Hi,

It seems that the built index.cjs and index.mjs files available on NPM depend on the "buffer" package:
line 12907 of index.mjs:

Image

The buffer package is not declared as a dependency in package.json. Its a very commonly used dependency, so up until recently, we had it available through other dependencies, as I imagine many others have, but we don't any longer, leading to build errors when attempting to bundle for browsers:

Image

It's very easy to work-around - just add a dependency to buffer yourself - but it would be nice to have it declared in package.json of docx.js, so it just works :-)

I'll happily submit a PR if you agree with the suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions