babel-plugin-import-pkg
v1.0.0
Published
通过配置给相应文件自动引入装饰器到默认导出的组件
Downloads
1
Readme
babel-plugin-import-pkg
通过配置给相应文件自动引入装饰器到默认导出的组件
Example
{ "pkg": "@/baseComponents/Container" }
const Example: React.FC = () => null;
export default Example;
↓ ↓ ↓ ↓ ↓ ↓
const Example: React.FC = () => null;
export default require("@/baseComponents/Container").default(Example);