Skip to content

Commit abf08f0

Browse files
author
Luca Forstner
authored
fix(core): Widen detection of source maps with .cjs.map and .mjs.map (#422)
1 parent 4254c3f commit abf08f0

File tree

1 file changed

+8
-5
lines changed
  • packages/bundler-plugin-core/src

1 file changed

+8
-5
lines changed

packages/bundler-plugin-core/src/index.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,14 @@ export function createRollupDebugIdUploadHooks(
452452
) {
453453
if (outputOptions.dir) {
454454
const outputDir = outputOptions.dir;
455-
const buildArtifacts = await glob(["/**/*.js", "/**/*.js.map"], {
456-
root: outputDir,
457-
absolute: true,
458-
nodir: true,
459-
});
455+
const buildArtifacts = await glob(
456+
["/**/*.js", "/**/*.js.map", "/**/*.mjs.map", "/**/*.cjs.map"],
457+
{
458+
root: outputDir,
459+
absolute: true,
460+
nodir: true,
461+
}
462+
);
460463
await upload(buildArtifacts);
461464
} else if (outputOptions.file) {
462465
await upload([outputOptions.file]);

0 commit comments

Comments
 (0)