We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d1c4d8 commit db028c3Copy full SHA for db028c3
.changeset/light-guests-pull.md
@@ -0,0 +1,5 @@
1
+---
2
+'@vanilla-extract/rollup-plugin': patch
3
4
+
5
+allow plugin to work in rolldown
packages/rollup-plugin/src/index.ts
@@ -74,8 +74,9 @@ export function vanillaExtractPlugin({
74
},
75
// Emit .css assets
76
moduleParsed(moduleInfo) {
77
- moduleInfo.importedIdResolutions.forEach((resolution) => {
78
- if (resolution.meta.css) {
+ moduleInfo.importedIds.forEach((id) => {
+ const resolution = this.getModuleInfo(id);
79
+ if (resolution?.meta.css) {
80
resolution.meta.assetId = this.emitFile({
81
type: 'asset',
82
name: resolution.id,
0 commit comments