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

Warnings from Rollup - cannot interpret *#__PURE__* due to position of the comment #975

Open
rfdrake27 opened this issue Jul 3, 2024 · 1 comment

Comments

@rfdrake27
Copy link

rfdrake27 commented Jul 3, 2024

Now when building with vite, I see many warnings like this:

node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.js (3:14): A comment

"/*#__PURE__*/"

in "node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.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/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.js (4:14): A comment

"/*#__PURE__*/"

I'm on version 6.0.3

@citizensas
Copy link

I guess the reason behind this is because of how the pure annotation requires a white between itself and the following script.
In this example you can see that it should've been a space right before the styled method.

- const ScrollRegionStyle = /*#__PURE__*/styled('div')
+ const ScrollRegionStyle = /*#__PURE__*/ styled('div')

I don't know whether this is a bug in Linaria or another dependent package.

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

2 participants