mozilla-releng / balrog

Mozilla's Update Server
http://mozilla-balrog.readthedocs.io/en/latest/index.html
Mozilla Public License 2.0
99 stars 149 forks source link

Configure webpack production build to avoid using devtools that rely on eval #3103

Closed gabrielBusta closed 5 months ago

gabrielBusta commented 5 months ago

Looks like Neutrino was doing this for us. This should take care of the eval calls in the transpiled production code.

bhearsum commented 5 months ago

I don't really understand all of the changes to webpack.config.js -- is this a generated file?

Oh - nevermind. Hiding whitespace gets rid of most of it.

gabrielBusta commented 5 months ago

Yes. The reason for this is that we are now reading the env and configuring the build based on that. Because the export is now a function instead of a plain object the indentation changed and it looks like more changes than it is.