From c609b4b93d511fd7761197d3f7690a1c2346d713 Mon Sep 17 00:00:00 2001 From: Ahad Birang Date: Tue, 4 Aug 2020 19:42:59 +0430 Subject: [PATCH] fix(webpack): support string values for `corejsVersion` (#7849) --- packages/webpack/src/config/base.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/webpack/src/config/base.js b/packages/webpack/src/config/base.js index 456bd8dee5..39ce9cb9d5 100644 --- a/packages/webpack/src/config/base.js +++ b/packages/webpack/src/config/base.js @@ -124,6 +124,8 @@ export default class WebpackBaseConfig { } catch (_err) { corejsVersion = 2 } + } else { + corejsVersion = Number.parseInt(corejsVersion) } if (![2, 3].includes(corejsVersion)) {