-
-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Description
In version 0.8.0 and higher we lost the ability to override shortcuts from presetThemeDefault.
If we use shortcutOverrides option like this:
presetThemeDefault({
shortcutOverrides: {
btn: 'px-[0.75em] py-[0.375em] rounded-[0.375em] gap-x-[0.375em] whitespace-nowrap',
},
})
it will raise this error
[vite] Internal server error: result.flatMap is not a function
at UnoGenerator.expandShortcut (/Users/brojor/dev/testing/anu-9.1-test/node_modules/.pnpm/@unocss+core@0.45.28/node_modules/@unocss/core/dist/index.cjs:817:14)
at UnoGenerator.parseToken (/Users/brojor/dev/testing/anu-9.1-test/node_modules/.pnpm/@unocss+core@0.45.28/node_modules/@unocss/core/dist/index.cjs:497:27)
at /Users/brojor/dev/testing/anu-9.1-test/node_modules/.pnpm/@unocss+core@0.45.28/node_modules/@unocss/core/dist/index.cjs:524:34
at Array.map (<anonymous>)
at UnoGenerator.generate (/Users/brojor/dev/testing/anu-9.1-test/node_modules/.pnpm/@unocss+core@0.45.28/node_modules/@unocss/core/dist/index.cjs:521:46)
at Context.load (/Users/brojor/dev/testing/anu-9.1-test/node_modules/.pnpm/@unocss+vite@0.45.28_vite@3.1.6/node_modules/@unocss/vite/dist/index.cjs:502:30)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.load (file:///Users/brojor/dev/testing/anu-9.1-test/node_modules/.pnpm/vite@3.1.6/node_modules/vite/dist/node/chunks/dep-db16f19c.js:41084:32)
at async loadAndTransform (file:///Users/brojor/dev/testing/anu-9.1-test/node_modules/.pnpm/vite@3.1.6/node_modules/vite/dist/node/chunks/dep-db16f19c.js:37312:24)
husayt
Metadata
Metadata
Assignees
Labels
No labels