fix(webpack): support string values for corejsVersion (#7849)

This commit is contained in:
Ahad Birang 2020-08-04 19:42:59 +04:30 committed by GitHub
parent 2eb42876a2
commit c609b4b93d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,6 +124,8 @@ export default class WebpackBaseConfig {
} catch (_err) {
corejsVersion = 2
}
} else {
corejsVersion = Number.parseInt(corejsVersion)
}
if (![2, 3].includes(corejsVersion)) {