webpack should force case on windows

I just had some strange errors after a typo in my require with react.

I had:

var React = require('React'); //instead of require('react')

On linux this will fail.
But as this is on windows this works, but later on this gave problems:

....
WARNING in ./~/react/lib/ReactServerRenderingTransaction.js
There is another module with a equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.

WARNING in ./~/React/lib/ReactServerRenderingTransaction.js
There is another module with a equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.

WARNING in ./~/react/lib/onlyChild.js
There is another module with a equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.
....

Can webpack force the case of imports on windows, so the require fails?

Author: Fantashit

2 thoughts on “webpack should force case on windows

  1. @Urthen Thanks for creating the plugin. Would you like to PR this into core as a feature now? Going to mark this as Help Wanted. (Pruning issue list).

Comments are closed.