babel-plugin-search-and-replace:一个小的babel插件来搜索字符串并替换它们

时间:2021-01-31 02:57:50
【文件属性】:
文件名称:babel-plugin-search-and-replace:一个小的babel插件来搜索字符串并替换它们
文件大小:60KB
文件格式:ZIP
更新时间:2021-01-31 02:57:50
babel babel-plugin search-and-replace BabelJavaScript babel插件的搜索和替换 它能做什么 ? 它替换您在babel运行时选择的字符串 如何使用它 ? yarn add babel-plugin-search-and-replace -DE或npm i babel-plugin-search-and-replace --save-dev --exact 在.babelrc中添加以下行 { " plugins " : [ [ " search-and-replace " , { " rules " : [ { " search " : " searchedString " , " searchTemplateStrings " : true , " replace " : " replacement " }, { " search " : /myRegex/ , " replace " : " repla
【文件预览】:
babel-plugin-search-and-replace-master
----.gitignore(884B)
----package.json(395B)
----README.md(1KB)
----tests()
--------__snapshots__()
--------index.spec.js(2KB)
----lib()
--------index.js(1KB)
----.npmignore(7B)
----yarn.lock(141KB)

网友评论