我想添加可选链,结果babel给我报错,看了下是babel
版本问题:Options can't be an array in babel@7+
解决办法如下:
plugins: [
[
'@babel/plugin-proposal-nullish-coalescing-operator',
{},
'@babel/plugin-proposal-optional-chaining'
]
],
我想添加可选链,结果babel给我报错,看了下是babel
版本问题:Options can't be an array in babel@7+
解决办法如下:
plugins: [
[
'@babel/plugin-proposal-nullish-coalescing-operator',
{},
'@babel/plugin-proposal-optional-chaining'
]
],