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

[@web3auth/solana-provider] Invalid annotations in the CJS build of the solana-provider package. "/* @__PURE__ */" #1679

Open
paro-paro opened this issue Jan 4, 2024 · 0 comments

Comments

@paro-paro
Copy link

Hi,

Latest v4.x rollup version (included in vite 5.x) logs warnings if invalid annotations are detected: check last paragraph

This is the case for the CJS built of the solana provider package => dist/solanaProvider.cjs.js

Here is a reproduction

The full log (repeated many times) (lines 5902, 5903, 5904, 7318...) => /* @PURE / (/ unused pure expression or super */

(!) A comment

"/* @__PURE__ */"

in "node_modules/@web3auth/solana-provider/dist/solanaProvider.cjs.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
https://rollupjs.org/https://rollupjs.org/configuration-options/#pure
node_modules/@web3auth/solana-provider/dist/solanaProvider.cjs.js (5902:19)

I believe this is the only package that might be affected by this:

Screenshot 2024-01-04 at 21 50 42
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