vite-tsconfig-paths Givevitethe ability to resolve imports using TypeScript's path mapping. Usage Install as dev dependency Ensure the project either has"type": "module"set or that the Vite config is renamed tovite.config.mjs/vite.config.mtsdepending on whether TypeScript is used ...
vite-tsconfig-paths Givevitethe ability to resolve imports using TypeScript's path mapping. Usage Install as dev dependency Ensure the project either has"type": "module"set or that the Vite config is renamed tovite.config.mjs/vite.config.mtsdepending on whether TypeScript is used ...
aleclarson / vite-tsconfig-paths Public Notifications Fork 51 Star 1.4k master Breadcrumbs vite-tsconfig-paths / vitest.config.ts Latest commit HistoryHistory File metadata and controls Code Blame 10 lines (9 loc) · 190 Bytes Raw 1 2 3 4 5 6 7 8 9 10 import { defineConfig } ...
将tsconfig配置中的paths提取出来放到resolve.alias中 图一乐欢迎尝试 npm i vite-plugin-tsconfig-paths2 -D import{defineConfig}from"vite";importvuefrom"@vitejs/plugin-vue";importtsconfigPathfrom"vite-plugin-tsconfig-path";// https://vitejs.dev/config/exportdefaultdefineConfig({plugins:[vue(),tsconf...
{ "name": "vite-tsconfig-paths", "version": "5.0.1", "description": "Vite resolver for TypeScript compilerOptions.paths", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { "types": "./dist/index.d.ts", "default": "./dist/index.js" ...
Support for TypeScript's path mapping in Vite. Contribute to himself65/vite-tsconfig-paths development by creating an account on GitHub.
"vite": "*", "vite-tsconfig-paths": "link:." }, 6,461 changes: 1,345 additions & 5,116 deletions 6,461 pnpm-lock.yaml Load diff Large diffs are not rendered by default. 138 changes: 0 additions & 138 deletions 138 spec/index.spec.ts Load diff This file was deleted. ...
Support for TypeScript's path mapping in Vite. Contribute to aleclarson/vite-tsconfig-paths development by creating an account on GitHub.
Bumpsvite-tsconfig-pathsfrom 5.1.2 to 5.1.3. Release notes Sourced fromvite-tsconfig-paths's releases. v5.1.3 fix:Once an importer is matched, end directory traversal (b0d8ecb9b862412e93f73b172cc0692259ce01b8) feat:Addvite-tsconfig-paths:resolvedebug logs (7160d6e52673367a7f4766ca9023d...
[![npm](https://img.shields.io/npm/v/vite-tsconfig-paths.svg)](https://www.npmjs.com/package/vite-tsconfig-paths) [![Code style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![Donate](https://img.shields.io/badge...