Electron uses Angular (webpack package) to write render threads. When FS is introduced, no module can be found.

Article From:https://segmentfault.com/q/1010000009831255

Question:

resolved

Hello, everybody! The details are as follows:

staywebpackPackangularWhen, if, ifangularIntroduce the imagefs、pathSuch a node module, thenwebpackWhat is the packaging mechanism? Is there a preparation method that allowswebpackDo not pack the modules and save themrequireHow about the way to introduce it? The following diagram can be provedfsThe module can be inconsoleIntroduced, but when the code is packaged, it will prompt.fsThe module can’t be found.

If you know or have encountered similar problems, thank you very much for your help.