mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(webpack): support string values for corejsVersion
(#7849)
This commit is contained in:
parent
2eb42876a2
commit
c609b4b93d
@ -124,6 +124,8 @@ export default class WebpackBaseConfig {
|
||||
} catch (_err) {
|
||||
corejsVersion = 2
|
||||
}
|
||||
} else {
|
||||
corejsVersion = Number.parseInt(corejsVersion)
|
||||
}
|
||||
|
||||
if (![2, 3].includes(corejsVersion)) {
|
||||
|
Loading…
Reference in New Issue
Block a user