* Private Properties phase 1 Co-authored-by: CodingItWrong * Private fields are optional * Docs update
12 lines
257 B
JavaScript
12 lines
257 B
JavaScript
import { declare } from "@babel/helper-plugin-utils";
|
|
|
|
export default declare(api => {
|
|
api.assertVersion(7);
|
|
|
|
return {
|
|
manipulateOptions(opts, parserOpts) {
|
|
parserOpts.plugins.push("classProperties", "classPrivateProperties");
|
|
},
|
|
};
|
|
});
|