move webpack to dev-dependencies#31
move webpack to dev-dependencies#31ndbroadbent merged 1 commit intoDocSpring:masterfrom nutgaard:patch-1
Conversation
|
Hello, there was a discussion about this here: #4 Sorry I don't have too much time to dive into this again, but does your change prevent any warnings when using the published version of craco-less in an app? (I think that's where I seeing the warnings, which were just a bit annoying.) |
|
I've read through the issues, but couldn't understand why it was an issue. So I had to try it out for myself. :p Published a fork with the changes proposed in this PR (on gpr so a bit of a hassle for others to test). With this these dependencies: I get the following warnings during As far as I can tell, these warnings are related to SASS and typescript support in react-script. But nothing related to Tested using npm@6.4.1 and node@10.14.1. There may have been some changes to how npm flatten the dependency-tree in recent versions, so older versions of npm may still have an issue. |
|
Ahh I see, well thanks for looking into it! Yeah maybe something changed with later versions of npm/yarn, so that would be great. I'll merge it in! |
Attempt to prevent further issues with webpack-version mismatches.
Did the following tests;
Installing dependencies for this library;
yarn- warnings related tojest,core-jsandtypescript. Nothing related toless-loaderandwebpacknpm install- warnings related totypescript,sass-loaderandtsutils. Nothing related toless-loaderandwebpackInstalling this library as a dependency;
yarn- warnings related tojest,core-jsandtypescript. Nothing related toless-loaderandwebpacknpm- warnings related totypescript,sass-loaderandtsutils. Nothing related toless-loaderandwebpackTested using
yarn@1.21.1andnpm@6.4.1.