From f05b5ca4a078c08460c8b043c9c0140ab0c07816 Mon Sep 17 00:00:00 2001 From: Skyler Nesheim Date: Thu, 12 Nov 2020 16:58:49 -0600 Subject: [PATCH] PRD-27: add work-around for webpack issue https://github.com/serverless-heaven/serverless-webpack/issues/651 --- .nvmrc | 2 +- tsconfig.json | 5 +---- webpack.config.js | 11 ++++++++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.nvmrc b/.nvmrc index ec3053c..72eb55e 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -10.15 +12.19 diff --git a/tsconfig.json b/tsconfig.json index 4a24f54..fa4dc5a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,4 @@ { "extends": "./node_modules/skripts/base-tsconfig.json", - "include": ["src"], - "compilerOptions": { - "target": "es2018" - } + "include": ["src"] } diff --git a/webpack.config.js b/webpack.config.js index 6b1ec70..bf68451 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,3 +1,8 @@ -module.exports = require("skripts/config").webpack( - require("serverless-webpack") -) +const webpack = require("skripts/config").webpack(require("serverless-webpack")) + +module.exports = { + ...webpack, + optimization: { + concatenateModules: false, + }, +}