Skip to content

Commit

Permalink
let the minifier handle comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Apr 19, 2023
1 parent 227989b commit bd567e5
Show file tree
Hide file tree
Showing 5 changed files with 200 additions and 173 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ Object {
},
"output": Object {
"ascii_only": true,
"comments": false,
"quote_style": 3,
"wrap_iife": true,
},
Expand All @@ -151,7 +152,6 @@ Object {
"unstable_dependencyMapReservedName": null,
"unstable_disableModuleWrapping": false,
"unstable_disableNormalizePseudoGlobals": false,
"unstable_preserveComments": false,
"workerPath": "metro/src/DeltaBundler/Worker",
},
"transformerPath": "",
Expand Down Expand Up @@ -311,6 +311,7 @@ Object {
},
"output": Object {
"ascii_only": true,
"comments": false,
"quote_style": 3,
"wrap_iife": true,
},
Expand All @@ -330,7 +331,6 @@ Object {
"unstable_dependencyMapReservedName": null,
"unstable_disableModuleWrapping": false,
"unstable_disableNormalizePseudoGlobals": false,
"unstable_preserveComments": false,
"workerPath": "metro/src/DeltaBundler/Worker",
},
"transformerPath": "",
Expand Down Expand Up @@ -490,6 +490,7 @@ Object {
},
"output": Object {
"ascii_only": true,
"comments": false,
"quote_style": 3,
"wrap_iife": true,
},
Expand All @@ -509,7 +510,6 @@ Object {
"unstable_dependencyMapReservedName": null,
"unstable_disableModuleWrapping": false,
"unstable_disableNormalizePseudoGlobals": false,
"unstable_preserveComments": false,
"workerPath": "metro/src/DeltaBundler/Worker",
},
"transformerPath": "",
Expand Down Expand Up @@ -669,6 +669,7 @@ Object {
},
"output": Object {
"ascii_only": true,
"comments": false,
"quote_style": 3,
"wrap_iife": true,
},
Expand All @@ -688,7 +689,6 @@ Object {
"unstable_dependencyMapReservedName": null,
"unstable_disableModuleWrapping": false,
"unstable_disableNormalizePseudoGlobals": false,
"unstable_preserveComments": false,
"workerPath": "metro/src/DeltaBundler/Worker",
},
"transformerPath": "",
Expand Down
2 changes: 1 addition & 1 deletion packages/metro-config/src/defaults/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ const getDefaultValues = (projectRoot: ?string): ConfigT => ({
},
output: {
ascii_only: true,
comments: false,
quote_style: 3,
wrap_iife: true,
},
Expand All @@ -134,7 +135,6 @@ const getDefaultValues = (projectRoot: ?string): ConfigT => ({
unstable_disableModuleWrapping: false,
unstable_disableNormalizePseudoGlobals: false,
unstable_compactOutput: false,
unstable_preserveComments: false,
},
watcher: {
additionalExts,
Expand Down

0 comments on commit bd567e5

Please sign in to comment.