This is a little test to verify the bundleability of colors.js with Webpack. See Marak/colors.js#203 (comment) for details.
npm i colors@~1.2.0 && npm run build
While the output is correctly bundled in dist/index.js
, the build (rightfully) emits the following warning:
WARNING in ./node_modules/colors/lib/extendStringPrototype.js
95:31-45 Critical dependency: the request of a dependency is an expression
@ ./node_modules/colors/lib/extendStringPrototype.js
@ ./node_modules/colors/lib/index.js
@ ./src/index.js
npm i colors@~1.3.0 && npm run build
Builds the project without warnings.