Revert "Webpack: cache lib.js to disk to prevent occasional OOM" This reverts commit f630c8892a48b3970fd8b38a8edb64333d399d88.
| @@ -1,5 +1,4 @@ | |||
| 1 | import process from 'node:process'; | 1 | import process from 'node:process'; |
| 2 | import fs from 'node:fs'; | ||
| 3 | import webpack from 'webpack'; | 2 | import webpack from 'webpack'; |
| 4 | import middleware from 'webpack-dev-middleware'; | 3 | import middleware from 'webpack-dev-middleware'; |
| 5 | import { publicLibConfig } from '../../webpack.config.js'; | 4 | import { publicLibConfig } from '../../webpack.config.js'; |
| @@ -17,8 +16,5 @@ export default function getWebpackServeMiddleware() { | |||
| 17 | }); | 16 | }); |
| 18 | } | 17 | } |
| 19 | 18 | ||
| 20 | return middleware(compiler, { | 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 | hints: false, | 24 | hints: false, |
| 25 | }, | 25 | }, |
| 26 | output: { | 26 | output: { |
| 27 | path: path.resolve(process.cwd(), 'dist'), | ||
| 28 | filename: 'lib.js', | 27 | filename: 'lib.js', |
| 29 | libraryTarget: 'module', | 28 | libraryTarget: 'module', |
| 30 | }, | 29 | }, |