From 348b3937bd35dbdde146a56e8a0de96fe909e7c7 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 25 Aug 2022 12:49:28 +0200 Subject: [PATCH] Fixed webpack distribution --- package.json | 2 ++ webpack.config.ts | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0416176..483496c 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,8 @@ "typeorm": "^0.3.7" }, "runtimeDependencies": [ + "@fastify/multipart", + "@fastify/static", "@nestjs/common", "@nestjs/core", "@nestjs/platform-fastify", diff --git a/webpack.config.ts b/webpack.config.ts index 5608c2d..398e3bf 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -17,7 +17,7 @@ function transform_package(input: Buffer): string { delete pkg['runtimeDependencies']; delete pkg['devDependencies']; delete pkg['jest']; - return JSON.stringify(pkg); + return JSON.stringify(pkg, null, '\t'); } export default { @@ -46,7 +46,6 @@ export default { }, externalsPresets: { node: true }, mode: 'production', - devtool: 'inline-source-map', resolve: { extensions: ['.ts', '.js'] },