Skip to content

Commit 0a83a19

Browse files
committed
Remove babel class properties transform
1 parent ea35184 commit 0a83a19

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

fluent-react/babel.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ module.exports = {
1111
"original": "fluent",
1212
"replacement": "fluent/compat"
1313
}],
14-
"@babel/plugin-proposal-async-generator-functions",
15-
"@babel/plugin-proposal-class-properties"
14+
"@babel/plugin-proposal-async-generator-functions"
1615
],
1716
};

fluent-react/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
},
5757
"devDependencies": {
5858
"@babel/plugin-proposal-async-generator-functions": "^7.2.0",
59-
"@babel/plugin-proposal-class-properties": "^7.7.4",
6059
"@babel/preset-env": "^7.5.5",
6160
"@babel/preset-react": "7.0.0",
6261
"babel-jest": "^24.8.0",

fluent-react/src/localization.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export default class ReactLocalization {
1717
this.bundles = CachedSyncIterable.from(bundles);
1818
}
1919

20-
getBundle = id => mapBundleSync(this.bundles, id);
20+
getBundle(id) {
21+
return mapBundleSync(this.bundles, id);
22+
}
2123

2224
getString(id, args, fallback) {
2325
const bundle = this.getBundle(id);

0 commit comments

Comments
 (0)