Revert "Webpack: cache lib.js to disk to prevent occasional OOM"

This reverts commit f630c8892a.
This commit is contained in:
Cohee
2024-11-28 22:45:45 +02:00
parent f630c8892a
commit afb4acc19b
2 changed files with 1 additions and 6 deletions

View File

@ -1,5 +1,4 @@
import process from 'node:process';
import fs from 'node:fs';
import webpack from 'webpack';
import middleware from 'webpack-dev-middleware';
import { publicLibConfig } from '../../webpack.config.js';
@ -17,8 +16,5 @@ export default function getWebpackServeMiddleware() {
});
}
return middleware(compiler, {
// @ts-ignore Use actual file system to ease on heap memory usage
outputFileSystem: fs,
});
return middleware(compiler, {});
}