Skip to content

Commit

Permalink
fix: resolve alias from vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
cr34t1ve committed May 9, 2024
1 parent 92faf1a commit 2f3455f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/create-hana-app/templates/typescript/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { defineConfig } from 'vite';
import { hana } from '@hanabira/router';
import react from '@vitejs/plugin-react';
import path from 'path';

export default defineConfig({
resolve: {
alias: [{ find: '@', replacement: path.resolve(__dirname, 'src') }],
},
plugins: [
react(),
hana({
Expand Down

0 comments on commit 2f3455f

Please sign in to comment.