glide-data-grid icon indicating copy to clipboard operation
glide-data-grid copied to clipboard

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

Open rfdrake27 opened this issue 1 year ago • 1 comments

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

rfdrake27 avatar Jul 03 '24 06:07 rfdrake27

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.

citizensas avatar Jul 03 '24 06:07 citizensas