File tree Expand file tree Collapse file tree 5 files changed +5
-65
lines changed
Expand file tree Collapse file tree 5 files changed +5
-65
lines changed Original file line number Diff line number Diff line change 1- # Vue Styled Components TypeScript Syntax Plugin
1+ # Vue Styled Plugin
22
33A Vite plugin that provides TypeScript generic syntax support for Vue Styled Components, similar to React styled-components.
44
Original file line number Diff line number Diff line change 11import type { Plugin } from 'vite'
22import { describe , expect , it } from 'vitest'
3- import vueStyledComponentsTypescriptSyntax from '../index'
3+ import vueStyledComponentsTypescriptSyntax from '../src/ index'
44import { extractPropsFromCode } from './normalize'
55
66describe ( 'vue文件处理' , ( ) => {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export interface PluginOptions {
3636 * Vue Styled Components TypeScript Syntax Plugin
3737 * @param options Plugin configuration options
3838 */
39- export default function typescriptSyntaxPlugin ( options : PluginOptions = { } ) : Plugin {
39+ export default function vueStyledPlugin ( options : PluginOptions = { } ) : Plugin {
4040 const {
4141 debug = false ,
4242 logLevel = 'error' ,
@@ -60,7 +60,7 @@ export default function typescriptSyntaxPlugin(options: PluginOptions = {}): Plu
6060
6161 // Return Vite plugin configuration
6262 return {
63- name : 'vue-styled-components:typescript-syntax ' ,
63+ name : 'vue-styled-plugin ' ,
6464 enforce : 'pre' ,
6565
6666 transform ( code , id ) {
Original file line number Diff line number Diff line change 11import { defineConfig } from 'tsup'
22
33export default defineConfig ( {
4- entry : [ 'index.ts' ] ,
4+ entry : [ 'src/ index.ts' ] ,
55 target : 'esnext' ,
66 format : [ 'esm' , 'cjs' ] ,
77 splitting : false ,
You can’t perform that action at this time.
0 commit comments