Revert "Webpack: cache lib.js to disk to prevent occasional OOM" This reverts commit f630c8892a48b3970fd8b38a8edb64333d399d88.

afb4acc19b604fd736597d6ce3c090e4b29cd429

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +1 -6Ignore whitespace
src/middleware/webpack-serve.js+1 -5
@@ -1,5 +1,4 @@
11import process from 'node:process';
2-import fs from 'node:fs';
32import webpack from 'webpack';
43import middleware from 'webpack-dev-middleware';
54import { publicLibConfig } from '../../webpack.config.js';
@@ -17,8 +16,5 @@ export default function getWebpackServeMiddleware() {
1716 });
1817 }
1918
2019 return middleware(compiler, {});
21- // @ts-ignore Use actual file system to ease on heap memory usage
22- outputFileSystem: fs,
23- });
2420}
webpack.config.js+0 -1
@@ -24,7 +24,6 @@ export const publicLibConfig = {
2424 hints: false,
2525 },
2626 output: {
27- path: path.resolve(process.cwd(), 'dist'),
2827 filename: 'lib.js',
2928 libraryTarget: 'module',
3029 },