Skip to content

Commit

Permalink
Update babel config (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed May 25, 2023
1 parent c458f65 commit 78b289f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion babel.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ module.exports = getBabelConfig({
ignore: [
// babel can't process .d.ts
/\.d\.ts$/
]
],
// These settings reduce the verbosity of transpile outputs
assumptions: {
// When declaring classes, assume that methods don't shadow getters on the superclass and that the program doesn't depend on methods being non-enumerable.
setClassMethods: true,
// When using public class fields, assume that they don't shadow any getter in the current class, in its subclasses or in its superclass.
setPublicClassFields: true
}
}
});

0 comments on commit 78b289f

Please sign in to comment.