Qix-/color



The issue has been closed
4.0.0 fails to be parsed by webpack without transpiling #206
cjayross posted onGitHub
Since upgrading to 4.0.0, webpack fails to parse index.js
. It fails on line 66:
ERROR in ${PROJECT}/.yarn/cache/color-npm-4.0.0-ec1e8d2d13-3cafd69201.zip/node_modules/color/index.js 66:16
Module parse failed: Identifier directly after number (66:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| } else if (typeof object === 'number') {
| // This is always RGB - can be converted later on.
> object &= 0xFF_FF_FF;
| this.model = 'rgb';
| this.color = [
My current workaround is to either downgrade to before 4.0.0 or to explicitly transpile color
into my target.
Currently using yarn 2.4.0 (berry) and node 16.5.0.