File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/bundler-plugin-core/src Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import {
2020 stripQueryAndHashFromPath ,
2121} from "./utils" ;
2222import * as dotenv from "dotenv" ;
23+ import { glob } from "glob" ;
2324
2425interface SentryUnpluginFactoryOptions {
2526 releaseInjectionPlugin : ( injectionCode : string ) => UnpluginOptions ;
@@ -420,7 +421,11 @@ export function createRollupDebugIdUploadHooks(
420421 ) {
421422 if ( outputOptions . dir ) {
422423 const outputDir = outputOptions . dir ;
423- const buildArtifacts = Object . keys ( bundle ) . map ( ( asset ) => path . join ( outputDir , asset ) ) ;
424+ const buildArtifacts = await glob ( [ "/**/*.js" , "/**/*.js.map" ] , {
425+ root : outputDir ,
426+ absolute : true ,
427+ nodir : true ,
428+ } ) ;
424429 await upload ( buildArtifacts ) ;
425430 } else if ( outputOptions . file ) {
426431 await upload ( [ outputOptions . file ] ) ;
You can’t perform that action at this time.
0 commit comments