From c3efae4c47d19ad00c8df2ecbd2e020be4c9c021 Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Fri, 26 Jul 2024 14:59:34 +0200 Subject: [PATCH] chore: fix resolve alias for playground app --- playground/vite.config.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/playground/vite.config.ts b/playground/vite.config.ts index 1908896b..ce755b82 100644 --- a/playground/vite.config.ts +++ b/playground/vite.config.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import { resolve } from 'path'; import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; import tailwindcss from 'tailwindcss'; @@ -20,12 +20,11 @@ export default defineConfig({ plugins: [tailwindcss()] } }, - resolve: { alias: { - '@prestashopcorp/puik-theme/assets': path.resolve(__dirname, './node_modules/@prestashopcorp/puik-theme/assets'), - '@prestashopcorp/puik-theme/src': path.resolve(__dirname, './node_modules/@prestashopcorp/puik-theme/src'), - '@prestashopcorp/puik-theme': path.resolve(__dirname, './node_modules/@prestashopcorp/puik-theme/dist') + '@prestashopcorp/puik-theme/assets': resolve(__dirname, '../node_modules/@prestashopcorp/puik-theme/assets'), + '@prestashopcorp/puik-theme/src': resolve(__dirname, '../node_modules/@prestashopcorp/puik-theme/src'), + '@prestashopcorp/puik-theme': resolve(__dirname, '../node_modules/@prestashopcorp/puik-theme/dist') } } });