Skip to content

Commit 99416de

Browse files
fix: closes #75, using plugin results in empty source map files
1 parent c42f19d commit 99416de

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)