We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5714792 commit b4c9a96Copy full SHA for b4c9a96
api/test/tree-shaking/tree-shaking.test.ts
@@ -88,9 +88,10 @@ describe('tree-shaking', () => {
88
const fs = new Union();
89
fs.use(mfs as any).use(realFs);
90
91
- //direct webpack to use unionfs for file input
92
- compiler.inputFileSystem = fs;
93
- //direct webpack to output to memoryfs rather than to disk
+ // direct webpack to use unionfs for file input
+ // needs workaround from https://github.com/webpack/webpack/issues/18242#issuecomment-2018116985 since webpack 5.91.0
+ compiler.inputFileSystem = fs as any as typeof compiler.inputFileSystem;
94
+ // direct webpack to output to memoryfs rather than to disk
95
compiler.outputFileSystem = {
96
...mfs,
97
join: path.join,
0 commit comments