Skip to content

Vite.js 5 unknown comment /*#__PURE__*/ info #631

@D3strukt0r

Description

@D3strukt0r

Since switching to Vite.js 5 (using Ant 4) I get the following information during a build:

yarn run v1.22.19
$ vite build
vite v5.0.0 building for production...
transforming...
node_modules/rc-field-form/es/utils/validateUtil.js (80:14) A comment

"/*#__PURE__*/"

in "node_modules/rc-field-form/es/utils/validateUtil.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
✓ 5537 modules transformed.
[...]

How can this be fixed?

NodeJS v20.9.0
Yarn v1.22.19
Ant v4.24.14
RC Field Form v1.34.2

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