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

WARN node_modules/polished/lib/color/rgb.js (6:59) A comment 15:14:25 "/*#__PURE__*/" in "node_modules/polished/lib/color/rgb.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues. #642

Closed
FezVrasta opened this issue Dec 6, 2023 · 3 comments
Labels

Comments

@FezVrasta
Copy link

  • polished version: 4.2.2
  • JSS-in_CSS library and version: irrelevant
  • Any relevant JS library and version: Vite 5.0.0

Mixin/Helper/Shorthand Usage

N/A

What You Are Seeing

During builds, I get these warnings:


 WARN  node_modules/polished/lib/color/rgb.js (6:59) A comment                                                                                           15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgb.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/rgb.js (8:56) A comment                                                                                           15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgb.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/rgb.js (10:51) A comment                                                                                          15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgb.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/parseToRgb.js (6:53) A comment                                                                                    15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/parseToRgb.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/parseToRgb.js (8:54) A comment                                                                                    15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/parseToRgb.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/parseToRgb.js (10:51) A comment                                                                                   15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/parseToRgb.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/rgba.js (6:55) A comment                                                                                          15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgba.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/rgba.js (8:48) A comment                                                                                          15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgba.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/rgba.js (10:51) A comment                                                                                         15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgba.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/transparentize.js (6:50) A comment                                                                                15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/transparentize.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/transparentize.js (8:50) A comment                                                                                15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/transparentize.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/transparentize.js (10:49) A comment                                                                               15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/transparentize.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.


 WARN  node_modules/polished/lib/color/transparentize.js (12:55) A comment                                                                               15:14:25

"/*#__PURE__*/"

in "node_modules/polished/lib/color/transparentize.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.

What You Expected To See

No warnings.

Reproduction

@cherryeclipseworks
Copy link

It's happening on another parts of the polished package also:

node_modules/polished/lib/internalHelpers/_hslToHex.js (6:53) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/internalHelpers/_hslToHex.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/polished/lib/internalHelpers/_hslToHex.js (8:59) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/internalHelpers/_hslToHex.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/polished/lib/internalHelpers/_hslToHex.js (10:56) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/internalHelpers/_hslToHex.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/polished/lib/color/hsl.js (6:53) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/hsl.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/polished/lib/color/hsl.js (8:51) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/hsl.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/polished/lib/color/hsla.js (6:53) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/hsla.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/polished/lib/color/hsla.js (8:53) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/hsla.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/polished/lib/color/hsla.js (10:51) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/hsla.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/polished/lib/color/rgb.js (6:59) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgb.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/polished/lib/color/rgb.js (8:56) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgb.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/polished/lib/color/rgb.js (10:51) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgb.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/polished/lib/color/parseToRgb.js (6:53) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/parseToRgb.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/polished/lib/color/parseToRgb.js (8:54) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/parseToRgb.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/polished/lib/color/parseToRgb.js (10:51) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/parseToRgb.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/polished/lib/color/parseToHsl.js (6:55) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/parseToHsl.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/polished/lib/color/parseToHsl.js (8:53) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/parseToHsl.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/polished/lib/color/rgba.js (6:55) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgba.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/polished/lib/color/rgba.js (8:48) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgba.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/polished/lib/color/rgba.js (10:51) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/rgba.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/polished/lib/color/toColorString.js (6:48) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/toColorString.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/polished/lib/color/toColorString.js (8:49) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/toColorString.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/polished/lib/color/toColorString.js (10:48) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/toColorString.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/polished/lib/color/toColorString.js (12:49) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/toColorString.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/polished/lib/color/toColorString.js (14:51) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/toColorString.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/polished/lib/color/lighten.js (6:50) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/lighten.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/polished/lib/color/lighten.js (8:50) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/lighten.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/polished/lib/color/lighten.js (10:55) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/lighten.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/polished/lib/color/lighten.js (12:58) A comment

"/*#__PURE__*/"

in "node_modules/polished/lib/color/lighten.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.

@FezVrasta
Copy link
Author

I suppose this library is dead?

bhough added a commit that referenced this issue Feb 1, 2024
Remove unneeded pure function annotation plugin.

re: #642
@bhough bhough added bug and removed unconfirmed bug labels Feb 1, 2024
bhough added a commit that referenced this issue Feb 1, 2024
Remove unneeded pure function annotation plugin.

re: #642
@bhough bhough closed this as completed Feb 1, 2024
@bhough bhough reopened this Feb 1, 2024
@bhough
Copy link
Contributor

bhough commented Feb 5, 2024

This should now be addressed (in a non-breaking manner) with #647.

@bhough bhough closed this as completed Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants