Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
opt out of class property transform for static class properties
  • Loading branch information
nfcampos authored and calesce committed Oct 1, 2016
1 parent 12f3fdd commit 44f9902
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/babel/index.js
Expand Up @@ -173,6 +173,11 @@ module.exports = function plugin(args) {
if (path.isClassProperty()) {
const { node } = path;

// don't apply transform to static class properties
if (node.static) {
return;
}

const state = {
optOut: false,
};
Expand Down

0 comments on commit 44f9902

Please sign in to comment.