Skip to content

Commit

Permalink
refactor: improve performance for default options
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Dec 8, 2022
1 parent 881510a commit 92eefb5
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 1,097 deletions.
4 changes: 2 additions & 2 deletions examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@vitejs/plugin-vue-jsx": "^2.1.1",
"vite": "^3.2.5",
"vite-plugin-inspect": "^0.7.9",
"vite-plugin-removelog": "workspace:0.1.0",
"vite-plugin-removelog": "workspace:*",
"vue": "^3.2.45"
}
}
}
2 changes: 2 additions & 0 deletions examples/vite/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ const app = createApp(App)

console.log('Ts')

console.warn('TsxWarn')

app.mount('#app')
7 changes: 1 addition & 6 deletions examples/vite/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@ import Inspect from 'vite-plugin-inspect'
import Removelog from 'vite-plugin-removelog'

export default defineConfig({
plugins: [
Vue(),
Jsx(),
Inspect(),
Removelog()
]
plugins: [Vue(), Jsx(), Inspect(), Removelog()]
})
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"test:ui": "vitest --ui",
"test:update": "vitest -u",
"coverage": "vitest --coverage",
"init:info": "plop --plopfile scripts/init.js",
"release": "npm run build && bumpp --commit --push --tag && npm publish",
"play": "pnpm -C examples/vite run dev",
"play:open": "pnpm -C examples/vite run dev:open",
Expand Down Expand Up @@ -58,14 +57,13 @@
"@vitest/ui": "^0.25.5",
"bumpp": "^8.2.1",
"c8": "^7.12.0",
"esno": "^0.16.3",
"plop": "^3.1.1",
"tsup": "^6.5.0",
"typescript": "^4.9.4",
"vite": "^3.2.5",
"vitest": "^0.25.5"
},
"dependencies": {
"gogocode": "^1.0.55"
"gogocode": "^1.0.55",
"m-type-tools": "^0.2.0"
}
}
}
Loading

0 comments on commit 92eefb5

Please sign in to comment.