Skip to content

Commit e2a9c3a

Browse files
Fix generated ESM module (#301)
2 parents 937c6f1 + 0a6bf3f commit e2a9c3a

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.babelrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
]
1313
],
1414
"plugins": [
15-
"@babel/plugin-proposal-class-properties"
15+
"@babel/plugin-proposal-class-properties",
16+
"@babel/plugin-transform-classes"
1617
]
1718
},
1819
"esm": {
@@ -28,7 +29,8 @@
2829
]
2930
],
3031
"plugins": [
31-
"@babel/plugin-proposal-class-properties"
32+
"@babel/plugin-proposal-class-properties",
33+
"@babel/plugin-transform-classes"
3234
]
3335
},
3436
"test": {
@@ -44,6 +46,7 @@
4446
],
4547
"plugins": [
4648
"@babel/plugin-proposal-class-properties",
49+
"@babel/plugin-transform-classes",
4750
"istanbul"
4851
]
4952
}

lib/body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Body {
5151
this.defaultConfigurations.arm = parameter_.arm.default_configurations;
5252
this.defaultConfigurations.leftArm = parameter_.arm.default_configurations;
5353
this.defaultConfigurations.rightArm = parameter_.arm.default_configurations;
54-
}).bind(this);
54+
});
5555

5656
// Define the gripper action
5757
this.leftGripperAction = new ActionClient({

package-lock.json

Lines changed: 1 addition & 0 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
@@ -45,6 +45,7 @@
4545
"@babel/core": "^7.18.0",
4646
"@babel/eslint-parser": "^7.18.2",
4747
"@babel/plugin-proposal-class-properties": "^7.17.12",
48+
"@babel/plugin-transform-classes": "^7.17.12",
4849
"@babel/preset-env": "^7.18.0",
4950
"@babel/register": "^7.17.0",
5051
"babel-plugin-istanbul": "^6.1.1",

0 commit comments

Comments
 (0)