field-form
field-form copied to clipboard
Vite.js 5 unknown comment `/*#__PURE__*/` info
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
Similar issue to https://github.com/ant-design/ant-design/issues/46022
the same issue
I have the same issue. Anyone fixed it ?
Try to upgrade vite to latest version