warning after vite build about __PURE__
gaokun opened this issue · comments
Ken commented
Describe the bug
warning after vite build:
node_modules/.pnpm/ant-design-vue@3.2.17_vue@3.4.21/node_modules/ant-design-vue/es/_util/hooks/_vueuse/_configurable.js (2:27) A comment
"/* #__PURE__ */"
in "node_modules/.pnpm/ant-design-vue@3.2.17_vue@3.4.21/node_modules/ant-design-vue/es/_util/hooks/_vueuse/_configurable.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/.pnpm/ant-design-vue@3.2.17_vue@3.4.21/node_modules/ant-design-vue/es/_util/hooks/_vueuse/_configurable.js (3:29) A comment
"/* #__PURE__ */"
in "node_modules/.pnpm/ant-design-vue@3.2.17_vue@3.4.21/node_modules/ant-design-vue/es/_util/hooks/_vueuse/_configurable.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/.pnpm/ant-design-vue@3.2.17_vue@3.4.21/node_modules/ant-design-vue/es/_util/hooks/_vueuse/_configurable.js (4:30) A comment
"/* #__PURE__ */"
in "node_modules/.pnpm/ant-design-vue@3.2.17_vue@3.4.21/node_modules/ant-design-vue/es/_util/hooks/_vueuse/_configurable.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/.pnpm/ant-design-vue@3.2.17_vue@3.4.21/node_modules/ant-design-vue/es/_util/hooks/_vueuse/_configurable.js (5:29) A comment
"/* #__PURE__ */"
in "node_modules/.pnpm/ant-design-vue@3.2.17_vue@3.4.21/node_modules/ant-design-vue/es/_util/hooks/_vueuse/_configurable.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/.pnpm/ant-design-vue@3.2.17_vue@3.4.21/node_modules/ant-design-vue/es/_util/hooks/_vueuse/is.js (47:19) A comment
"/* #__PURE__ */"
in "node_modules/.pnpm/ant-design-vue@3.2.17_vue@3.4.21/node_modules/ant-design-vue/es/_util/hooks/_vueuse/is.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
Refer
here is a related issue in vue-i18n-next
, link
Reproduction
none
System Info
System:
OS: macOS 14.2.1
CPU: (12) arm64 Apple M2 Pro
Memory: 75.80 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node
npm: 9.5.0 - ~/.nvm/versions/node/v18.15.0/bin/npm
pnpm: 8.14.1 - ~/.nvm/versions/node/v18.15.0/bin/pnpm
Browsers:
Chrome: 122.0.6261.112
Safari: 17.2.1
npmPackages:
vue: ^3.4.21 => 3.4.21
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.