'In the elctron project, how to configure webpack to process the mjs.map file?

enter image description here enter image description here

My guess is that the mjs.map files are not processed by webpack, how can I make webpack process these files?

The webpack version I am using is 5.68.0, electron version is 17.0.0, and the nodejs version is v16.13.2。



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source