mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 14:41:25 +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) {
|
} catch (_err) {
|
||||||
corejsVersion = 2
|
corejsVersion = 2
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
corejsVersion = Number.parseInt(corejsVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (![2, 3].includes(corejsVersion)) {
|
if (![2, 3].includes(corejsVersion)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user