# babel-plugin-tntd-utils **Repository Path**: bruce68/babel-plugin-tntd-utils ## Basic Information - **Project Name**: babel-plugin-tntd-utils - **Description**: babel按需加载插件,支持数组模式 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2020-08-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # babel-plugin-tntd-utils ## 安装 ``` npm install babel-plugin-tntd-utils --save-dev ``` ### 使用说明 ``` // .babelrc "plugins": [ [ "babel-plugin-tntd-utils", { "library": "yournpm" // 支持数组["yournpm", "yournpm2"] }, "syntax-decorators" ], ] // index.js import { helloworld } from 'yournpm'; ↓ ↓ ↓ ↓ ↓ ↓ var _helloworld = require('yournpm/lib/helloworld'); ```