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

View File

@ -24,7 +24,6 @@ export const publicLibConfig = {
hints: false, hints: false,
}, },
output: { output: {
path: path.resolve(process.cwd(), 'dist'),
filename: 'lib.js', filename: 'lib.js',
libraryTarget: 'module', libraryTarget: 'module',
}, },