13 lines
405 B
JavaScript
13 lines
405 B
JavaScript
import { declare } from "@babel/helper-plugin-utils";
|
|
import transformFlowStripTypes from "@babel/plugin-transform-flow-strip-types";
|
|
import normalizeOptions from "./normalize-options";
|
|
|
|
export default declare((api, opts) => {
|
|
api.assertVersion(7);
|
|
const { all, allowDeclareFields } = normalizeOptions(opts);
|
|
|
|
return {
|
|
plugins: [[transformFlowStripTypes, { all, allowDeclareFields }]],
|
|
};
|
|
});
|