1.5.31 • Published 2 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
2 years ago
1.5.31
2 years ago
1.5.21
2 years ago
1.5.23
2 years ago
1.5.22
2 years ago
1.5.25
2 years ago
1.5.24
2 years ago
1.5.27
2 years ago
1.5.26
2 years ago
1.5.29
2 years ago
1.5.28
2 years ago
1.5.20
2 years ago
1.5.19
2 years ago
1.5.17
2 years ago
1.5.16
2 years ago
1.5.15
2 years ago
1.5.14
2 years ago
1.5.12
2 years ago
1.5.11
2 years ago
1.5.10
2 years ago
1.5.9
2 years ago
1.5.8
2 years ago
1.5.7
2 years ago
1.5.6
2 years ago
1.5.5
2 years ago
1.5.4
2 years ago