Socket
Book a DemoInstallSign in
Socket

@58fe/babel-plugin-p5-import

Package Overview
Dependencies
Maintainers
10
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@58fe/babel-plugin-p5-import

针对p5组件库的按需加载babel插件

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
10
Weekly downloads
 
Created
Source

babel-plugin-p5-import

p5组件库的按需引入插件

安装

npm i @58fe/babel-plugin-p5-import -D

使用

.babelrc 中配置该插件

{
    ...
    plugins:["@58fe/babel-plugin-p5-import", opts]
}

其中opts可以是一个对象 ,配置例子如下:

{
	libraryName:'@58fe/p5',
	libraryDirectory:'library/components',
	pluginNameRegExp:/^(.+)Plugin$/,
	libraryPluginDirectory:'library/plugin'
}

Keywords

58

FAQs

Package last updated on 01 Aug 2019

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.