Relative Content

Tag Archive for reactjswebpack

Disable webpackChunkName comment on Production env

I’m trying to rename chunk for easier to debug in lighthouse. However, I find that size of chunk increase slightly after I have renamed it. I guest it have to store more bytes for the name of the chunk.

How to correctly configure package dependancy for microfrontends using webpack and react?

I have project with microfrontend using react and webpack. In the container app also I am using antd library. Then I created the microfrontend app and used as remoteEntry in container app. I was able to load the components successfully from the remote microfrontend to the container app.But when I try to install antd libry seperatly in the remote microfrontend and use it was giving me the following error.

How to package a component library with multiple modules?

I’ve written a large component library with various top-level folders like api, components, utils etc. During initial development I used exports in package.json to define convenient entry locations that my code could be imported from, like <package>/utils. But I had these exports pointing to the /src folder, not to the /dist folder produced by webpack.