File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const RollupPluginRemoveOthersConsole = () => {
32
32
33
33
return rows . map ( ( row , idx ) => {
34
34
if ( removeLine . includes ( idx ) ) {
35
- return row . replace ( / c o n s o l e \. l o g \( (?: [ ^ ) ( ] | \( (?: [ ^ ) ( ] + | \( [ ^ ) ( ] * \) ) * \) ) * \) [ ; \n ] ? / g, { } )
35
+ return row . replace ( / c o n s o l e \. l o g \( (?: [ ^ ) ( ] | \( (?: [ ^ ) ( ] + | \( [ ^ ) ( ] * \) ) * \) ) * \) [ ; \n ] ? / g, `{}` )
36
36
}
37
37
return row
38
38
} ) . join ( '\n' )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rollup-plugin-remove-others-console" ,
3
- "version" : " 0.0.6 " ,
3
+ "version" : " 0.0.7 " ,
4
4
"homepage" : " https://github.com/mmdctjj/rollup-plugin-remove-others-console" ,
5
5
"description" : " Automatically remove console statements from other developers and only retain their own" ,
6
6
"main" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const RollupPluginRemoveOthersConsole = () => {
32
32
33
33
return rows . map ( ( row , idx ) => {
34
34
if ( removeLine . includes ( idx ) ) {
35
- return row . replace ( / c o n s o l e \. l o g \( (?: [ ^ ) ( ] | \( (?: [ ^ ) ( ] + | \( [ ^ ) ( ] * \) ) * \) ) * \) [ ; \n ] ? / g, { } )
35
+ return row . replace ( / c o n s o l e \. l o g \( (?: [ ^ ) ( ] | \( (?: [ ^ ) ( ] + | \( [ ^ ) ( ] * \) ) * \) ) * \) [ ; \n ] ? / g, `{}` )
36
36
}
37
37
return row
38
38
} ) . join ( '\n' )
You can’t perform that action at this time.
0 commit comments