Skip to content

Commit ef95896

Browse files
Merge pull request #83 from recursive-beast/source-maps
fix: closes #75, using plugin results in empty source map files
2 parents c42f19d + 99416de commit ef95896

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ function externalAssets(arg: unknown): Plugin {
112112
},
113113
});
114114

115-
return generate(ast, { sourceMaps: true });
115+
return generate(ast, {
116+
sourceMaps: true,
117+
sourceFileName: chunk.fileName,
118+
});
116119
},
117120
};
118121
}

0 commit comments

Comments
 (0)