Revert "Webpack: cache lib.js to disk to prevent occasional OOM" This reverts commit f630c8892a48b3970fd8b38a8edb64333d399d88.
| @@ -1,5 +1,4 @@ | ||
| 1 | 1 | import process from 'node:process'; |
| 2 | -import fs from 'node:fs'; | |
| 3 | 2 | import webpack from 'webpack'; |
| 4 | 3 | import middleware from 'webpack-dev-middleware'; |
| 5 | 4 | import { publicLibConfig } from '../../webpack.config.js'; |
| @@ -17,8 +16,5 @@ export default function getWebpackServeMiddleware() { | ||
| 17 | 16 | }); |
| 18 | 17 | } |
| 19 | 18 | |
| 20 | 19 | return middleware(compiler, {}); |
| 21 | - // @ts-ignore Use actual file system to ease on heap memory usage | |
| 22 | - outputFileSystem: fs, | |
| 23 | - }); | |
| 24 | 20 | } |
| @@ -24,7 +24,6 @@ export const publicLibConfig = { | ||
| 24 | 24 | hints: false, |
| 25 | 25 | }, |
| 26 | 26 | output: { |
| 27 | - path: path.resolve(process.cwd(), 'dist'), | |
| 28 | 27 | filename: 'lib.js', |
| 29 | 28 | libraryTarget: 'module', |
| 30 | 29 | }, |