Create Libraries and basic tooltip
This commit is contained in:
35
libs/_internal/directives/vite.config.ts
Normal file
35
libs/_internal/directives/vite.config.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
/// <reference types="vitest" />
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
cacheDir: '../../../node_modules/.vite/_internal-directives',
|
||||
|
||||
|
||||
|
||||
plugins: [
|
||||
|
||||
|
||||
nxViteTsPaths(),
|
||||
],
|
||||
|
||||
|
||||
// Uncomment this if you are using workers.
|
||||
// worker: {
|
||||
// plugins: [ nxViteTsPaths() ],
|
||||
// },
|
||||
|
||||
|
||||
test: {
|
||||
globals: true,
|
||||
cache: {
|
||||
dir: '../../../node_modules/.vitest'
|
||||
},
|
||||
environment: 'node',
|
||||
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
||||
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user