You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add FilerWebpackPlugin to an existing Webpack configuration.
Problem
As soon as I require('filer'), Webpack starts failing because it cannot find the entry file anymore.
Analysis
This problem seems to be caused by a side effect in src/path.js:
/** * Patch process to add process.cwd(), always giving the root dir. * NOTE: this line needs to happen *before* we require in `path`. */process.cwd=()=>'/';
Workaround
The only workaround that I found is to save process.cwd before importing filer, and to restore it afterwards.