Skip to content

Error with rollup 4.6 #103

@1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions