Socket
Socket
Sign inDemoInstall

@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插件


Version published
Maintainers
10
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc