Open jaydenseric opened 4 years ago
Can you show the size before and after adding ignore
? Do we have the problem with Webpack or only with --why
?
There is no change for either the reported sizes, or for the --why
report.
Before:
After:
Unfortunately, I will have a very rough week because of moving to another project.
Can you help me with the investigation?
Here is how we ignore nodules: https://github.com/ai/size-limit/blob/master/packages/webpack/get-config.js#L80-L90
We use webpack’s externals
option and I am not sure that we use it right for your case. If you will do some hacks in your project (just open this file in node_modules
) it will speed up the issue.
I have multiple size-limit entry files for server, browser, etc, like this:
I don't want to include the entry files in the bundle size, as they only serve as a means to cherry pick relevant parts of the API for each size limit test and are not actually published.
For some reason none of these variations in the
ignore
array work:size-limit-entries
size-limit-entries/browser.mjs
./size-limit-entries
./size-limit-entries/browser.mjs
When using
--why
: