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

This commit is contained in:
Cohee
2024-11-28 22:39:20 +02:00
parent 4f24f8078d
commit f630c8892a
2 changed files with 6 additions and 1 deletions

View File

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