-
Notifications
You must be signed in to change notification settings - Fork 296
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@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 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. The Based of the discussion in #706, I don't think this change affects anything as the |
||
}; | ||
}, | ||
}; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
exports[`rollup-plugin should build with preserveModules 1`] = ` | ||
[ | ||
[ | ||
"assets/src/shared.css.ts.vanilla-16598c42.css", | ||
"assets/src/shared.css.ts.vanilla-G_Gyt4-e.css", | ||
".shared_shadow__4dtfen0 { | ||
box-shadow: 0 0 5px red; | ||
} | ||
|
@@ -15,7 +15,7 @@ body, button { | |
}", | ||
], | ||
[ | ||
"assets/src/styles.css.ts.vanilla-1b9864b6.css", | ||
"assets/src/styles.css.ts.vanilla-C7NI1Ovc.css", | ||
"@font-face { | ||
src: local("Impact"); | ||
font-family: "styles_impact__jteyb10"; | ||
|
@@ -68,7 +68,7 @@ html .styles_opacity_1\\/4__jteyb17 { | |
}", | ||
], | ||
[ | ||
"assets/src/themes.css.ts.vanilla-3ad7ca47.css", | ||
"assets/src/themes.css.ts.vanilla-DMMXGwB8.css", | ||
":root, .themes_theme__cvta170 { | ||
--colors-backgroundColor__cvta171: blue; | ||
--colors-text__cvta172: white; | ||
|
@@ -183,7 +183,7 @@ render(); | |
], | ||
[ | ||
"src/shared.css.js", | ||
"import './../assets/src/shared.css.ts.vanilla-16598c42.css'; | ||
"import './../assets/src/shared.css.ts.vanilla-G_Gyt4-e.css'; | ||
|
||
var shadow = "shared_shadow__4dtfen0"; | ||
|
||
|
@@ -192,9 +192,9 @@ export { shadow }; | |
], | ||
[ | ||
"src/styles.css.js", | ||
"import './../assets/src/shared.css.ts.vanilla-16598c42.css'; | ||
import './../assets/src/themes.css.ts.vanilla-3ad7ca47.css'; | ||
import './../assets/src/styles.css.ts.vanilla-1b9864b6.css'; | ||
"import './../assets/src/shared.css.ts.vanilla-G_Gyt4-e.css'; | ||
import './../assets/src/themes.css.ts.vanilla-DMMXGwB8.css'; | ||
import './../assets/src/styles.css.ts.vanilla-C7NI1Ovc.css'; | ||
|
||
var button = "styles_button__jteyb13 shared_shadow__4dtfen0 styles_iDunno__jteyb12"; | ||
var container = "styles_container__jteyb11"; | ||
|
@@ -205,7 +205,7 @@ export { button, container, opacity }; | |
], | ||
[ | ||
"src/themes.css.js", | ||
"import './../assets/src/themes.css.ts.vanilla-3ad7ca47.css'; | ||
"import './../assets/src/themes.css.ts.vanilla-DMMXGwB8.css'; | ||
|
||
var altTheme = "themes_altTheme__cvta176"; | ||
var responsiveTheme = "themes_responsiveTheme__cvta177"; | ||
|
@@ -507,44 +507,64 @@ export { altTheme, responsiveTheme, theme, vars }; | |
exports[`rollup-plugin should build with sourcemaps 1`] = ` | ||
[ | ||
[ | ||
"assets/src/shared.css.ts.vanilla-16598c42.css", | ||
"assets/src/shared.css.ts.vanilla-G_Gyt4-e.css", | ||
"", | ||
], | ||
[ | ||
"assets/src/styles.css.ts.vanilla-1b9864b6.css", | ||
"assets/src/styles.css.ts.vanilla-C7NI1Ovc.css", | ||
"", | ||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AAA;AAAA,yBAEpB,EAAA,SAAA,CAAU,wBAAwB,CAAA,SAAA,EAAY,SAAS,CAAA;AAAA,8BAClD,EAAA,SAAA,CAAU,qBAAqB,CAAA,SAAA,EAAY,MAAM,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA,CAAA;AAiB/E,EAAA,MAAM,uBAAuB,QAAS,CAAA,cAAA;AAAA,IACpC,SAAU,CAAA,oBAAA;AAAA,GACZ,CAAA;AAEA,EAAA,IAAI,CAAC,oBAAsB,EAAA;AACzB,IAAM,MAAA,IAAI,MAAM,mCAAmC,CAAA,CAAA;AAAA,GACrD;AAEA,EAAA,cAAA,CAAe,sBAAsB,IAAM,EAAA;AAAA,IACzC,MAAQ,EAAA;AAAA,MACN,eAAiB,EAAA,aAAA;AAAA,MACjB,IAAM,EAAA,YAAA;AAAA,KACR;AAAA,IACA,KAAO,EAAA;AAAA,MACL,CAAG,EAAA,KAAA;AAAA,MACH,CAAG,EAAA,MAAA;AAAA,MACH,CAAG,EAAA,MAAA;AAAA,KACL;AAAA,GACD,CAAA,CAAA;AAED,EAAA,cAAA,CAAe,oBAAsB,EAAA;AAAA,IACnC,CAAC,IAAA,CAAK,MAAO,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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"src/index.js.map", | ||
"", | ||
], | ||
[ | ||
"src/shared.css.js", | ||
";;;;;;", | ||
], | ||
[ | ||
"src/shared.css.js.map", | ||
"", | ||
], | ||
[ | ||
"src/styles.css.js", | ||
";;;;;;;;;;", | ||
], | ||
[ | ||
"src/styles.css.js.map", | ||
"", | ||
], | ||
[ | ||
"src/themes.css.js", | ||
";;;;;;;;;", | ||
], | ||
[ | ||
"src/themes.css.js.map", | ||
"", | ||
], | ||
[ | ||
"test-nodes.json.js", | ||
";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;", | ||
], | ||
[ | ||
"test-nodes.json.js.map", | ||
"", | ||
], | ||
] | ||
`; | ||
|
||
exports[`rollup-plugin should build without preserveModules 1`] = ` | ||
[ | ||
[ | ||
"assets/src/shared.css.ts.vanilla-16598c42.css", | ||
"assets/src/shared.css.ts.vanilla-G_Gyt4-e.css", | ||
".shared_shadow__4dtfen0 { | ||
box-shadow: 0 0 5px red; | ||
} | ||
|
@@ -556,7 +576,7 @@ body, button { | |
}", | ||
], | ||
[ | ||
"assets/src/styles.css.ts.vanilla-1b9864b6.css", | ||
"assets/src/styles.css.ts.vanilla-C7NI1Ovc.css", | ||
"@font-face { | ||
src: local("Impact"); | ||
font-family: "styles_impact__jteyb10"; | ||
|
@@ -609,7 +629,7 @@ html .styles_opacity_1\\/4__jteyb17 { | |
}", | ||
], | ||
[ | ||
"assets/src/themes.css.ts.vanilla-3ad7ca47.css", | ||
"assets/src/themes.css.ts.vanilla-DMMXGwB8.css", | ||
":root, .themes_theme__cvta170 { | ||
--colors-backgroundColor__cvta171: blue; | ||
--colors-text__cvta172: white; | ||
|
@@ -641,9 +661,9 @@ html .styles_opacity_1\\/4__jteyb17 { | |
[ | ||
"index.js", | ||
"import { assignInlineVars, setElementVars } from '@vanilla-extract/dynamic'; | ||
import './assets/src/themes.css.ts.vanilla-3ad7ca47.css'; | ||
import './assets/src/shared.css.ts.vanilla-16598c42.css'; | ||
import './assets/src/styles.css.ts.vanilla-1b9864b6.css'; | ||
import './assets/src/themes.css.ts.vanilla-DMMXGwB8.css'; | ||
import './assets/src/shared.css.ts.vanilla-G_Gyt4-e.css'; | ||
import './assets/src/styles.css.ts.vanilla-C7NI1Ovc.css'; | ||
|
||
var altTheme = "themes_altTheme__cvta176"; | ||
var responsiveTheme = "themes_responsiveTheme__cvta177"; | ||
|
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.