File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function minifyExtensionResources(input) {
37
37
. pipe ( buffer ( ) )
38
38
. pipe ( es . mapSync ( ( f ) => {
39
39
const errors = [ ] ;
40
- const value = jsoncParser . parse ( f . contents . toString ( 'utf8' ) , errors ) ;
40
+ const value = jsoncParser . parse ( f . contents . toString ( 'utf8' ) , errors , { allowTrailingComma : true } ) ;
41
41
if ( errors . length === 0 ) {
42
42
// file parsed OK => just stringify to drop whitespace and comments
43
43
f . contents = Buffer . from ( JSON . stringify ( value ) ) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function minifyExtensionResources(input: Stream): Stream {
39
39
. pipe ( buffer ( ) )
40
40
. pipe ( es . mapSync ( ( f : File ) => {
41
41
const errors : jsoncParser . ParseError [ ] = [ ] ;
42
- const value = jsoncParser . parse ( f . contents . toString ( 'utf8' ) , errors ) ;
42
+ const value = jsoncParser . parse ( f . contents . toString ( 'utf8' ) , errors , { allowTrailingComma : true } ) ;
43
43
if ( errors . length === 0 ) {
44
44
// file parsed OK => just stringify to drop whitespace and comments
45
45
f . contents = Buffer . from ( JSON . stringify ( value ) ) ;
You can’t perform that action at this time.
0 commit comments