const {injectBabelPlugin} = require ("react-app-rewired");
module.exports = function override (config, env) {
config = injectBabelPlugin(["import", { libraryName: "antd-mobile", style: "css" }], config);
return config;
};
I followed the steps of the official website, but the console reported an error
yarn run v1.7.0
$react-app-rewired start
injectBabelPlugin is not a function
errorinfo Visit Command failed with exit code 1.
https://yarnpkg.com/en/docs/c... for documentation about this command.
Process finished with exit code 1