@58fe/bable-plugin-p5-import

1.1.0 • Public • Published

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'
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.04latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.04
1.0.21
1.0.11
1.0.01

Package Sidebar

Install

npm i @58fe/bable-plugin-p5-import

Weekly Downloads

7

Version

1.1.0

License

ISC

Unpacked Size

3.32 kB

Total Files

4

Last publish

Collaborators

  • skybjf
  • rockolin
  • reking
  • imlimiao
  • xiaoyuya
  • felix_xue
  • zhangboyu
  • marinamumu
  • bestvist
  • liuhanbing