Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with rollup 4.6 #103

Open
1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP opened this issue Dec 7, 2023 · 0 comments
Open

Error with rollup 4.6 #103

1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP opened this issue Dec 7, 2023 · 0 comments

Comments

@1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant