Socket
Book a DemoInstallSign in
Socket

@jzo/babel-plugin-bin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jzo/babel-plugin-bin

使用@jzo/babel-plugin-bin,可对babel按需加载插件

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@jzo/babel-plugin-bin

安装

npm install @jzo/babel-plugin-bin --save-dev

使用说明

// .babelrc
"plugins": [
    [
      @jzo/babel-plugin-bin",
      {
        "library": "yournpm" // 支持数组["yournpm", "yournpm2"]
      }
    ],
  ]
  
### 注意
打包规则必须在bin目录下面  
  
  
// index.js
import { 组件名称 } from '包名';

      ↓ ↓ ↓ ↓ ↓ ↓

var _helloworld = require('包名/lib/组件名称');

Keywords

babel-plugin

FAQs

Package last updated on 24 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts