Skip to content

Commit 2027375

Browse files
authoredApr 11, 2022
fix: paths in postcss sourcemap sources array (#500)
1 parent 374c0e5 commit 2027375

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎src/transformers/globalStyle.ts

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const transformer: Transformer<Options.GlobalStyle> = async ({
7575

7676
const { css, map: newMap } = await postcss(plugins).process(content, {
7777
from: filename,
78+
to: filename,
7879
map: options?.sourceMap ? { prev: map } : false,
7980
});
8081

‎src/transformers/postcss.ts

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ async function process({
1515
}) {
1616
const { css, map, messages } = await postcss(plugins).process(content, {
1717
from: filename,
18+
to: filename,
1819
map: { prev: sourceMap, inline: false },
1920
parser,
2021
syntax,

0 commit comments

Comments
 (0)
Please sign in to comment.