import replacePath from "../helpers/replacePath";

export default function (t, path, state, regexps) {
	const sourcePath = path.get("source");
	if(sourcePath) {
		replacePath(t, sourcePath, state, regexps);
	}
}
import replacePath from "../helpers/replacePath";

export default function (t, path, state, regexps) {
	const sourcePath = path.get("source");
	if(sourcePath.node) {
		replacePath(t, sourcePath, state, regexps);
	}
}
Fix noop export breaking on null source node
fix(transformers): Fix noop export breaking on null source node
