-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update rollup and rollup plugins #1463
Conversation
🦋 Changeset detectedLatest commit: 5afc669 The changes in this PR will be included in the next version bump. This PR includes changesets to release 31 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
--- | ||
'@vanilla-extract/css': patch | ||
'@vanilla-extract/integration': patch | ||
'@vanilla-extract/private': patch | ||
'@vanilla-extract/recipes': patch | ||
'@vanilla-extract/sprinkles': patch | ||
--- | ||
|
||
Export types with `export { type T }` syntax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rollup-plugin-dts@6
started emitting type exports this way. These are the only packages that export types.
";;;;;;AAKA,MAAM,WAAW,GAAG,gBAAgB,CAAC,IAAI,EAAE;AAC3C,EAAE,MAAM,EAAE;AACV,IAAI,eAAe,EAAE,QAAQ;AAC7B,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,CAAC,EAAE,KAAK;AACZ,IAAI,CAAC,EAAE,KAAK;AACZ,IAAI,CAAC,EAAE,MAAM;AACb,GAAG;AACH,CAAC,CAAC,CAAC;AACH,SAAS,MAAM,GAAG;AAClB,EAAE,QAAQ,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC;AAC7B,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;AAC9C;AACA,aAAa,EAAE,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,CAAC;AAC5D,kBAAkB,EAAE,SAAS,CAAC,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC;AAC3D,kBAAkB,EAAE,QAAQ,CAAC;AAC7B;AACA,iBAAiB,EAAE,SAAS,CAAC,YAAY,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AAO,CAAA,eAAe,GAAG,YAAA;AAAA,GAChC,CAAA,CAAA;AACH,CAAA;AAEA,MAAO,EAAA", | ||
], | ||
[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rollup@3
started emitting both inline and external sourcemaps by default.
@@ -45,7 +45,7 @@ async function buildEntry(packageDir: string, entryPath: string) { | |||
const bundle = await rollup({ | |||
input: dtsEntryPath, | |||
plugins: [ | |||
externals({ | |||
nodeExternals({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was just an export rename.
@@ -101,7 +101,7 @@ export function vanillaExtractPlugin({ | |||
|
|||
return { | |||
code: output, | |||
map: chunkInfo.map ?? null, | |||
map: null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The map
property seems to have been removed, I think in rollup v4 (can't find patch notes for it though).
Based of the discussion in #706, I don't think this change affects anything as the null
was merely used to suppress warnings caused by chunkInfo.map
being undefined
.
Pretty straightforward. Will comment on any changes that need clarification.