Page 1 of 1

Production build taking quite a long time

Posted: Thu Jan 20, 2022 2:43 pm
by tatekuhic

Hello,

Once I try to utilize the regular source-maps option of webpack, my production build takes 40minutes, seemingly due to it trying to build source maps for the Bryntum package.

Disabling source maps makes it take 5 mins, but from time to time I really need these source maps of my application itself to debug. I saw another forum post with someone else having a similar issue. (I also have the warning
[BABEL] Note: The code generator has deoptimised the styling of /[path-to-project]/@bryntum/schedulerpro/schedulerpro.umd.js as it exceeds the max of 500KB.)

How do I go about for example excluding the Bryntum packages from the source maps ? Do you have any expertise on this?

Kind Regards!


Re: Production build taking quite a long time

Posted: Fri Jan 21, 2022 9:12 am
by sergey.maltsev

Hi!

Please check this webpack plugin for source maps generation control.
https://webpack.js.org/plugins/source-map-dev-tool-plugin/

It has exclude option:

https://webpack.js.org/plugins/source-map-dev-tool-plugin/#exclude-vendor-maps