File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,17 @@ async function copyExternalPackages() {
112112 await removeEmptyDirs ( thePath )
113113 } ) ,
114114 )
115+ // Remove all source map files from external packages.
116+ await removeFiles ( constants . externalPath , {
117+ exclude : [
118+ ...alwaysIgnoredPatterns ,
119+ '**/*.js' ,
120+ '**/*.mjs' ,
121+ '**/*.cjs' ,
122+ '**/*.json' ,
123+ '**/*.d.ts' ,
124+ ] ,
125+ } )
115126 // Rewire '@socketsecurity/registry' inside '@socketsecurity/sdk'.
116127 const sdkPath = path . join ( constants . externalPath , '@socketsecurity/sdk' )
117128 await Promise . all (
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export default {
2525 exports : 'named' ,
2626 // Use preserveModules to avoid bundling everything into one file.
2727 preserveModules : false ,
28+ sourcemap : false ,
2829 } ,
2930 external : [
3031 'ink' ,
You can’t perform that action at this time.
0 commit comments