Skip to content

Commit

Permalink
Remove referenced to the nativePrivateFields option
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Apr 20, 2021
1 parent c8d269d commit 7fcf7c4
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 114 deletions.
Expand Up @@ -170,16 +170,7 @@ export function verifyUsedFeatures(path, file) {

if (path.isProperty()) {
if (!hasFeature(file, FEATURES.fields)) {
let msg = "Class fields are not enabled.";
if (file.get(featuresKey) === FEATURES.privateIn) {
msg +=
" If you want to only compile '#priv in obj' checks, you" +
" can either pass the `nativePrivateFields: true` option to" +
" @babel/plugin-proposal-private-property-in-object or you" +
" can set the top-level 'targets' option to something that" +
" natively supports private fields and methods.";
}
throw path.buildCodeFrameError(msg);
throw path.buildCodeFrameError("Class fields are not enabled.");
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -1,6 +1,3 @@
{
"plugins": [
["proposal-private-property-in-object", { "nativePrivateFields": true }],
"syntax-class-properties"
]
"plugins": ["proposal-private-property-in-object", "syntax-class-properties"]
}

0 comments on commit 7fcf7c4

Please sign in to comment.