mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Configure babel to transform logical assignment (#24160)
This should fix any future problems along the lines of https://github.com/matrix-org/matrix-js-sdk/pull/3022.
This commit is contained in:
parent
6ff0524260
commit
5b730f4b07
1 changed files with 7 additions and 0 deletions
|
@ -22,6 +22,13 @@ module.exports = {
|
||||||
"@babel/plugin-proposal-object-rest-spread",
|
"@babel/plugin-proposal-object-rest-spread",
|
||||||
"@babel/plugin-proposal-optional-chaining",
|
"@babel/plugin-proposal-optional-chaining",
|
||||||
"@babel/plugin-proposal-nullish-coalescing-operator",
|
"@babel/plugin-proposal-nullish-coalescing-operator",
|
||||||
|
|
||||||
|
// transform logical assignment (??=, ||=, &&=). preset-env doesn't
|
||||||
|
// normally bother with these (presumably because all the target
|
||||||
|
// browsers support it natively), but they make our webpack version (or
|
||||||
|
// something downstream of babel, at least) fall over.
|
||||||
|
"@babel/plugin-proposal-logical-assignment-operators",
|
||||||
|
|
||||||
"@babel/plugin-syntax-dynamic-import",
|
"@babel/plugin-syntax-dynamic-import",
|
||||||
"@babel/plugin-transform-runtime",
|
"@babel/plugin-transform-runtime",
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue