Skip to content

Commit 2ab9f5a

Browse files
committed
feat(dt): add enforce 'pre' and fix plugin name
1 parent c0c543b commit 2ab9f5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/transform.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { createUnplugin } from 'unplugin'
55
const resolveToken = (path: string): string => `var(--${path.split('.').map(key => kebabCase(key)).join('-')})`
66

77
export default createUnplugin(() => ({
8-
name: 'unplugin-starter',
8+
name: 'unplugin-nuxt-design-tokens',
9+
enforce: 'pre',
910
transformInclude (id) {
1011
// Check if the target is a Vue <style> attribute.
1112
const regex = /\?vue&type=style/

0 commit comments

Comments
 (0)