Skip to content

Commit

Permalink
fix: paths in postcss sourcemap sources array (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfanger committed Apr 11, 2022
1 parent 374c0e5 commit 2027375
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/globalStyle.ts
Expand Up @@ -75,6 +75,7 @@ const transformer: Transformer<Options.GlobalStyle> = async ({

const { css, map: newMap } = await postcss(plugins).process(content, {
from: filename,
to: filename,
map: options?.sourceMap ? { prev: map } : false,
});

Expand Down
1 change: 1 addition & 0 deletions src/transformers/postcss.ts
Expand Up @@ -15,6 +15,7 @@ async function process({
}) {
const { css, map, messages } = await postcss(plugins).process(content, {
from: filename,
to: filename,
map: { prev: sourceMap, inline: false },
parser,
syntax,
Expand Down

0 comments on commit 2027375

Please sign in to comment.