Skip to content

Commit 9b50ac6

Browse files
authored
Transform local assignment (#475)
1 parent df17909 commit 9b50ac6

File tree

3 files changed

+59
-7
lines changed

3 files changed

+59
-7
lines changed

package-lock.json

Lines changed: 54 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"devDependencies": {
1313
"@babel/plugin-proposal-class-properties": "^7.18.6",
14+
"@babel/plugin-transform-logical-assignment-operators": "^7.23.4",
1415
"@rollup/plugin-babel": "^6.0.4",
1516
"@rollup/plugin-commonjs": "^25.0.7",
1617
"@rollup/plugin-json": "^6.1.0",

rollup.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ const config = {
2020
}),
2121
babel({
2222
babelHelpers: "bundled",
23-
plugins: ["@babel/plugin-proposal-class-properties"],
23+
plugins: [
24+
"@babel/plugin-proposal-class-properties",
25+
"@babel/plugin-transform-logical-assignment-operators",
26+
],
2427
}),
2528
json(),
2629
],

0 commit comments

Comments
 (0)