Skip to content

Commit 241d17d

Browse files
committedDec 28, 2024·
fix: out of order css in prod builds
closes #4098
1 parent 3eb4374 commit 241d17d

File tree

6 files changed

+972
-946
lines changed

6 files changed

+972
-946
lines changed
 

‎docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@lunariajs/core": "^0.1.1",
1414
"markdown-it-mathjax3": "^4.3.2",
1515
"open-cli": "^8.0.0",
16-
"postcss-rtlcss": "^5.5.1",
16+
"postcss-rtlcss": "^5.6.0",
1717
"vitepress": "workspace:*"
1818
}
1919
}

‎package.json

+37-38
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,28 @@
9898
"*": "prettier --write --ignore-unknown"
9999
},
100100
"dependencies": {
101-
"@docsearch/css": "^3.7.0",
102-
"@docsearch/js": "^3.7.0",
103-
"@iconify-json/simple-icons": "^1.2.11",
104-
"@shikijs/core": "^1.22.2",
105-
"@shikijs/transformers": "^1.22.2",
106-
"@shikijs/types": "^1.22.2",
101+
"@docsearch/css": "^3.8.2",
102+
"@docsearch/js": "^3.8.2",
103+
"@iconify-json/simple-icons": "^1.2.17",
104+
"@shikijs/core": "^1.24.4",
105+
"@shikijs/transformers": "^1.24.4",
106+
"@shikijs/types": "^1.24.4",
107107
"@types/markdown-it": "^14.1.2",
108-
"@vitejs/plugin-vue": "^5.1.4",
109-
"@vue/devtools-api": "^7.6.3",
110-
"@vue/shared": "^3.5.12",
111-
"@vueuse/core": "^11.2.0",
112-
"@vueuse/integrations": "^11.2.0",
113-
"focus-trap": "^7.6.0",
108+
"@vitejs/plugin-vue": "^5.2.1",
109+
"@vue/devtools-api": "^7.6.8",
110+
"@vue/shared": "^3.5.13",
111+
"@vueuse/core": "^12.2.0",
112+
"@vueuse/integrations": "^12.2.0",
113+
"focus-trap": "^7.6.2",
114114
"mark.js": "8.11.1",
115-
"minisearch": "^7.1.0",
116-
"shiki": "^1.22.2",
117-
"vite": "^5.4.10",
118-
"vue": "^3.5.12"
115+
"minisearch": "^7.1.1",
116+
"shiki": "^1.24.4",
117+
"vite": "^5.4.11",
118+
"vue": "^3.5.13"
119119
},
120120
"devDependencies": {
121-
"@clack/prompts": "^0.7.0",
122-
"@iconify/utils": "^2.1.33",
121+
"@clack/prompts": "^0.9.0",
122+
"@iconify/utils": "^2.2.1",
123123
"@mdit-vue/plugin-component": "^2.1.3",
124124
"@mdit-vue/plugin-frontmatter": "^2.1.3",
125125
"@mdit-vue/plugin-headers": "^2.1.3",
@@ -129,10 +129,10 @@
129129
"@mdit-vue/shared": "^2.1.3",
130130
"@polka/compression": "^1.0.0-next.28",
131131
"@rollup/plugin-alias": "^5.1.1",
132-
"@rollup/plugin-commonjs": "^28.0.1",
132+
"@rollup/plugin-commonjs": "^28.0.2",
133133
"@rollup/plugin-json": "^6.1.0",
134-
"@rollup/plugin-node-resolve": "^15.3.0",
135-
"@rollup/plugin-replace": "^6.0.1",
134+
"@rollup/plugin-node-resolve": "^16.0.0",
135+
"@rollup/plugin-replace": "^6.0.2",
136136
"@types/cross-spawn": "^6.0.6",
137137
"@types/debug": "^4.1.12",
138138
"@types/fs-extra": "^11.0.4",
@@ -143,55 +143,54 @@
143143
"@types/markdown-it-emoji": "^3.0.1",
144144
"@types/micromatch": "^4.0.9",
145145
"@types/minimist": "^1.2.5",
146-
"@types/node": "^22.9.0",
146+
"@types/node": "^22.10.2",
147147
"@types/postcss-prefix-selector": "^1.16.3",
148148
"@types/prompts": "^2.4.9",
149149
"chokidar": "^3.6.0",
150150
"conventional-changelog-cli": "^5.0.0",
151-
"cross-spawn": "^7.0.3",
152-
"debug": "^4.3.7",
153-
"esbuild": "^0.24.0",
154-
"execa": "^9.5.1",
151+
"cross-spawn": "^7.0.6",
152+
"debug": "^4.4.0",
153+
"esbuild": "^0.24.2",
154+
"execa": "^9.5.2",
155155
"fs-extra": "^11.2.0",
156156
"get-port": "^7.1.0",
157157
"gray-matter": "^4.0.3",
158-
"lint-staged": "^15.2.10",
158+
"lint-staged": "^15.3.0",
159159
"lodash.template": "^4.5.0",
160160
"lru-cache": "^11.0.2",
161161
"markdown-it": "^14.1.0",
162162
"markdown-it-anchor": "^9.2.0",
163-
"markdown-it-attrs": "^4.2.0",
163+
"markdown-it-attrs": "^4.3.1",
164164
"markdown-it-container": "^4.0.0",
165165
"markdown-it-emoji": "^3.0.0",
166166
"markdown-it-mathjax3": "^4.3.2",
167167
"micromatch": "^4.0.8",
168168
"minimist": "^1.2.8",
169-
"nanoid": "^5.0.8",
169+
"nanoid": "^5.0.9",
170170
"ora": "^8.1.1",
171-
"p-map": "^7.0.2",
171+
"p-map": "^7.0.3",
172172
"path-to-regexp": "^6.3.0",
173173
"picocolors": "^1.1.1",
174174
"pkg-dir": "^8.0.0",
175-
"playwright-chromium": "^1.48.2",
175+
"playwright-chromium": "^1.49.1",
176176
"polka": "^1.0.0-next.28",
177177
"postcss-prefix-selector": "^2.1.0",
178-
"prettier": "^3.3.3",
178+
"prettier": "^3.4.2",
179179
"prompts": "^2.4.2",
180180
"punycode": "^2.3.1",
181181
"rimraf": "^6.0.1",
182-
"rollup": "^4.24.4",
182+
"rollup": "^4.29.1",
183183
"rollup-plugin-dts": "^6.1.1",
184184
"rollup-plugin-esbuild": "^6.1.1",
185185
"semver": "^7.6.3",
186186
"simple-git-hooks": "^2.11.1",
187187
"sirv": "^3.0.0",
188188
"sitemap": "^8.0.0",
189-
"supports-color": "^9.4.0",
190189
"synckit": "^0.9.2",
191190
"tinyglobby": "^0.2.10",
192-
"typescript": "^5.6.3",
193-
"vitest": "^2.1.4",
194-
"vue-tsc": "^2.1.10",
191+
"typescript": "^5.7.2",
192+
"vitest": "^2.1.8",
193+
"vue-tsc": "^2.2.0",
195194
"wait-on": "^8.0.1"
196195
},
197196
"peerDependencies": {
@@ -206,7 +205,7 @@
206205
"optional": true
207206
}
208207
},
209-
"packageManager": "pnpm@9.12.3",
208+
"packageManager": "pnpm@9.15.1",
210209
"pnpm": {
211210
"peerDependencyRules": {
212211
"ignoreMissing": [

‎pnpm-lock.yaml

+925-899
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/client/theme-default/styles/fonts.css

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
font-weight: 100 900;
4747
font-display: swap;
4848
src: url('../fonts/inter-roman-vietnamese.woff2') format('woff2');
49-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
50-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
51-
U+1EA0-1EF9, U+20AB;
49+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
50+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
51+
U+0329, U+1EA0-1EF9, U+20AB;
5252
}
5353

5454
@font-face {
@@ -116,9 +116,9 @@
116116
font-weight: 100 900;
117117
font-display: swap;
118118
src: url('../fonts/inter-italic-vietnamese.woff2') format('woff2');
119-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
120-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
121-
U+1EA0-1EF9, U+20AB;
119+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
120+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
121+
U+0329, U+1EA0-1EF9, U+20AB;
122122
}
123123

124124
@font-face {

‎src/node/build/bundle.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ export async function bundle(
101101
rollupOptions: {
102102
...rollupOptions,
103103
input: {
104-
...input,
105104
// use different entry based on ssr or not
106-
app: path.resolve(APP_PATH, ssr ? 'ssr.js' : 'index.js')
105+
app: path.resolve(APP_PATH, ssr ? 'ssr.js' : 'index.js'),
106+
...input
107107
},
108108
// important so that each page chunk and the index export things for each
109109
// other

‎src/node/init/init.ts

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export async function init(root: string | undefined) {
4646
initialValue: './',
4747
validate(value) {
4848
// TODO make sure directory is inside
49+
return undefined
4950
}
5051
})
5152
},

0 commit comments

Comments
 (0)
Please sign in to comment.