mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
chore: improve use hook fail when yarn link or npm link (#22416)
* chore: improve use hook fail when yarn link or npm link * add eslint disable rule * use object spread
This commit is contained in:
parent
7da82dc196
commit
c9927b9b8d
@ -134,6 +134,10 @@ module.exports = {
|
||||
if (isDev) {
|
||||
// eslint-disable-next-line
|
||||
config.devtool = 'source-map';
|
||||
|
||||
// Resolve use react hook fail when yarn link or npm link
|
||||
// https://github.com/webpack/webpack/issues/8607#issuecomment-453068938
|
||||
config.resolve.alias = { ...config.resolve.alias, react: require.resolve('react') };
|
||||
}
|
||||
|
||||
alertBabelConfig(config.module.rules);
|
||||
|
Loading…
Reference in New Issue
Block a user