-
-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Description
With 5.1.0 vite-tsconfig-paths
correctly parses paths
, prints them when DEBUG is enabled, app works, vitest works.
With 5.1.1 vite-tsconfig-paths
no longer prints the paths in DEBUG output and both app and vitest tests stopepd working.
tsconfig.json
{
"compilerOptions": {
"target": "ESNext",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"types": ["vite/client", "vitest/globals"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"@@api/*": ["api/*"],
"@@components/*": ["src/components/*"],
"@@config/*": ["config/*"],
"@@data/*": ["src/data/*"],
"@@shared-utils/*": ["shared-utils/*"],
"@@locales/*": ["public/locales/*"],
}
},
"include": [
"api",
"config",
"src",
"*.config.ts",
"shared-utils"
]
}
DEBUG output - diff between 5.1.0 and 5.1.1
vite-tsconfig-paths options.root == undefined +0ms
vite-tsconfig-paths project root == K:/project +1ms
vite-tsconfig-paths workspace root == K:/project +0ms
vite-tsconfig-paths projects: [ 'K:\\project\\tsconfig.json' ] +27ms
vite-tsconfig-paths config loaded: {
configPath: 'K:/project/tsconfig.json',
config: {
compilerOptions: {
target: 'ESNext',
lib: [ 'dom', 'dom.iterable', 'esnext' ],
types: [ 'vite/client', 'vitest/globals' ],
allowJs: true,
skipLibCheck: true,
esModuleInterop: true,
allowSyntheticDefaultImports: true,
strict: true,
forceConsistentCasingInFileNames: true,
noFallthroughCasesInSwitch: true,
module: 'esnext',
moduleResolution: 'node',
resolveJsonModule: true,
isolatedModules: true,
noEmit: true,
jsx: 'react-jsx',
baseUrl: 'K:/project',
paths: {
'@@api/*': [ 'api/*' ],
'@@components/*': [ 'src/components/*' ],
'@@config/*': [ 'config/*' ],
'@@data/*': [ 'src/data/*' ],
'@@shared-utils/*': [ 'shared-utils/*' ],
'@@locales/*': [ 'public/locales/*' ]
}
},
include: [ 'api', 'config', 'src', '*.config.ts', 'shared-utils' ]
}
} +5ms
vite-tsconfig-paths compiled globs: {
includers: [
- /^\.\/api\/((?:[^/]*(?:\/|$))*)$/,
- /^\.\/config\/((?:[^/]*(?:\/|$))*)$/,
- /^\.\/src\/((?:[^/]*(?:\/|$))*)$/,
- /^\.\/([^/]*)\.config\.ts$/,
- /^\.\/shared-utils\/((?:[^/]*(?:\/|$))*)$/
+ /^\.\.\/\.\.\/\.\.\/api\/((?:[^/]*(?:\/|$))*)$/,
+ /^\.\.\/\.\.\/\.\.\/config\/((?:[^/]*(?:\/|$))*)$/,
+ /^\.\.\/\.\.\/\.\.\/src\/((?:[^/]*(?:\/|$))*)$/,
+ /^\.\.\/\.\.\/\.\.\/([^/]*)\.config\.ts$/,
+ /^\.\.\/\.\.\/\.\.\/shared-utils\/((?:[^/]*(?:\/|$))*)$/
],
excluders: [
/^\.\/((?:[^/]*(?:\/|$))*)node_modules\/((?:[^/]*(?:\/|$))*)$/,
/^\.\/((?:[^/]*(?:\/|$))*)bower_components\/((?:[^/]*(?:\/|$))*)$/,
/^\.\/((?:[^/]*(?:\/|$))*)jspm_packages\/((?:[^/]*(?:\/|$))*)$/
]
} +3ms
DEV v2.1.4 K:/project
- vite-tsconfig-paths resolved: {
- id: '@@config/test-utils',
- importer: 'K:/project/src/components/speeddial/hooks/__tests__/use-draft.test.ts',
- resolvedId: 'K:/project/config/test-utils.tsx',
- configPath: 'K:/project/tsconfig.json'
-} +2s
- vite-tsconfig-paths resolved: {
- id: '@@data/index',
- importer: 'K:/project/src/components/speeddial/components/__tests__/add-tile.test.tsx',
- resolvedId: 'K:/project/src/data/index.ts',
- configPath: 'K:/project/tsconfig.json'
-} +67ms
- vite-tsconfig-paths resolved: {
- id: '@@data/speeddial/slice',
- importer: 'K:/project/src/components/speeddial/components/__tests__/add-tile.test.tsx',
- resolvedId: 'K:/project/src/data/speeddial/slice.ts',
- configPath: 'K:/project/tsconfig.json'
-} +0ms
- vite-tsconfig-paths resolved: {
- id: 'src/theme',
- importer: 'K:/project/config/test-utils.tsx',
- resolvedId: 'K:/project/src/theme/index.tsx',
- configPath: 'K:/project/tsconfig.json'
-} +31ms
- vite-tsconfig-paths resolved: {
- id: 'src/data/index',
- importer: 'K:/project/src/components/speeddial/components/__tests__/add-tile.test.tsx',
- resolvedId: 'K:/project/src/data/index.ts',
- configPath: 'K:/project/tsconfig.json'
-}
<vitest output follows>
There is a change in includers
, can that be the reason?
ivancea
Metadata
Metadata
Assignees
Labels
No labels