Skip to content

Commit

Permalink
chore: simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Apr 9, 2023
1 parent de32439 commit 94b12f8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions playground/nested-deps/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import path from 'node:path'
import os from 'node:os'
import { defineConfig } from 'vite'

const isWindows = os.platform() === 'win32'
const packageFPath = path.resolve(__dirname, 'test-package-f')
const ensureSlash = (p) => (p.startsWith('/') ? p : `/${p}`)

export default defineConfig({
resolve: {
alias: {
__F_ABSOLUTE_PACKAGE_PATH__: isWindows
? ensureSlash(packageFPath)
: packageFPath,
__F_ABSOLUTE_PACKAGE_PATH__: packageFPath,
},
},
optimizeDeps: {
Expand All @@ -22,7 +17,7 @@ export default defineConfig({
'@vitejs/test-package-c/side',
'@vitejs/test-package-d > @vitejs/test-package-d-nested',
'@vitejs/test-package-e > @vitejs/test-package-e-included',
packageFPath,
'@vitejs/test-package-f',
],
exclude: ['@vitejs/test-package-d', '@vitejs/test-package-e-excluded'],
},
Expand Down

0 comments on commit 94b12f8

Please sign in to comment.