I\'m working on a webpack plugin and can\'t figure out how to modify a module during the build. What I\'m trying to do:
Another idea comes to my mind. What if do some preprocessing before webpack compilation?
This temp file could be a virtual file. May refer to https://github.com/rmarscher/virtual-module-webpack-plugin/ .
... be used if you generated file contents at build time that needs to be consumed as a module by your source code, but you don't want to write this file to disk.