From f93a4dbcc875bdfbcf3e371a249eeccbec59f124 Mon Sep 17 00:00:00 2001 From: Lianfeng <532291545@qq.com> Date: Fri, 1 Apr 2022 15:20:22 +0800 Subject: [PATCH] Fix webpack 5 case sensitive warning WARNING in ./node_modules/React/index.js There are multiple modules with names that only differ in casing. This can lead to unexpected behavior when compiling on a filesystem with other case-semantic. --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 6805dd5..1cfdf11 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -29,7 +29,7 @@ module.exports = { react: { commonjs: "react", commonjs2: "react", - amd: "React", + amd: "react", root: "React" }, "prop-types": {