1.5.31 • Published 4 years ago
babel-plugin-transform-test v1.5.31
Babel-plugin-transform-test
Transform log syntax, extract templates from source code matching patterns
Source map: mapping source path(posix) to its id
{ <source_map_ID>: <file_path> }Symbol map: mapping source map info to its symbol id
{ <symbol_map_ID>: <source_map_id>:<row>:<column> }Template map: mapping an actual raw template string to its template id
{ <template_ID>: <string> }
*** NOTE: All IDs are auto indexing
Usage
plugins: [
"babel-plugin-transform-test",
{
"replaceSymbFunc":{
"info":[
"logSymbol",
{
"variants":["self", "R", "F"]
}
],
"debug":[
"logSymbol",
{
"variants":["self", "R", "F"]
}
],
"warn":[
"logSymbol",
{
"variants":["self", "R", "F"]
}
],
"error":[
"logSymbol",
{
"variants":["self", "R", "F"]
}
]
},
"replaceCreateFeatFunc":["createFeatLogs","createOneFeatLog"],
"replaceCreateTemplFunc":["l"],
"loggerPathRegex":"(\\w+\\/)*some\\/path\\/(\\w+\\/)*(logger)$",
"logDataPathRegex":"(\\w+\\/)*more\\/path\\/(\\w+\\/)*(templates(-\\w+)+|templates)$",
"excludePathRegex":"",
"outDir":"out/path",
}
]1.5.30
4 years ago
1.5.31
4 years ago
1.5.21
4 years ago
1.5.23
4 years ago
1.5.22
4 years ago
1.5.25
4 years ago
1.5.24
4 years ago
1.5.27
4 years ago
1.5.26
4 years ago
1.5.29
4 years ago
1.5.28
4 years ago
1.5.20
4 years ago
1.5.19
4 years ago
1.5.17
4 years ago
1.5.16
4 years ago
1.5.15
4 years ago
1.5.14
4 years ago
1.5.12
4 years ago
1.5.11
4 years ago
1.5.10
4 years ago
1.5.9
4 years ago
1.5.8
4 years ago
1.5.7
4 years ago
1.5.6
4 years ago
1.5.5
4 years ago
1.5.4
4 years ago