-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
I have a project using vite 5 (rollup 4.6), and I get warnings related to react-async-hook when building my project:
vite v5.0.6 building for production...
node_modules/react-async-hook/dist/react-async-hook.cjs.development.js (25:24) A comment
"/*#__PURE__*/"
in "node_modules/react-async-hook/dist/react-async-hook.cjs.development.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/react-async-hook/dist/react-async-hook.cjs.development.js (27:29) A comment
"/*#__PURE__*/"
in "node_modules/react-async-hook/dist/react-async-hook.cjs.development.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
It refers to these lines:
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
I'm not sure where these are coming from, probably added by tsdx when building.
LeszekGratified, rmburg, Athou, gyrofx, lukaselmer and 7 more
Metadata
Metadata
Assignees
Labels
No labels