Skip to content

Commit 2fcf8e8

Browse files
stipsanaskoufis
andauthored
fix: include content in css sourcemap when extracting (#1627)
Co-authored-by: Adam Skoufis <[email protected]>
1 parent 1ccea97 commit 2fcf8e8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/breezy-poets-matter.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@vanilla-extract/rollup-plugin': patch
3+
---
4+
5+
Include content in CSS sourcemap when bundling with the `extract` option

packages/rollup-plugin/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ export function vanillaExtractPlugin({
174174
type: 'asset',
175175
name: sourcemapName,
176176
originalFileName: sourcemapName,
177-
source: bundle.generateMap({ file: name }).toString(),
177+
source: bundle
178+
.generateMap({ file: name, includeContent: true })
179+
.toString(),
178180
});
179181
}
180182
},

0 commit comments

Comments
 (0)