wuzekang / antd-theme

Provide runtime dynamic theme for ant design.
https://wuzekang.github.io/antd-theme
55 stars 14 forks source link

Webpack 5 incompatibility #10

Open martinpham97 opened 3 years ago

martinpham97 commented 3 years ago

I'm getting TypeError: Cannot read property 'tap' of undefined when trying to compile with Webpack 5.

tapable.hooks[name].tap(reason, callback);
                        ^

After some digging, I notice that webpack 5 does not allow you to add custom hooks.

See: https://github.com/webpack/changelog-v5/blob/master/README.md#hook-object-frozen

Will there be support for Webpack 5 soon?

wuzekang commented 3 years ago

Thanks for your digging I will fix it later.