Skip to content

Rollup can't interpret annotation "/*#__PURE__*/" #50

@silverpill

Description

@silverpill

Check existing issues

Ox Version

0.6.0

Current Behavior

A warning is generated when the module is processed with Rollup:

node_modules/viem/node_modules/ox/_esm/core/Json.js (1:21): A comment

"/*#__PURE__*/"

in "node_modules/viem/node_modules/ox/_esm/core/Json.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.

Apparently this annotation is supposed to be used with functions, but here it is used with a constant.

Expected Behavior

No warning.

Steps To Reproduce

  1. Add viem to a project that uses Rollup.
  2. Build it

Link to Minimal Reproducible Example

No response

Anything else?

Rollup v4.24.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions