Skip to content

Commit

Permalink
Resolve fsproj safer
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Feb 5, 2024
1 parent a053fe1 commit 06100d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import fable from 'vite-plugin-fable';

const fsproj = await import.meta.resolve('./fsharp/FantomasTools.fsproj');
const currentDir = path.dirname(fileURLToPath(import.meta.url));
const fsproj = path.join(currentDir, 'fsharp/FantomasTools.fsproj');

// https://vitejs.dev/config/
export default defineConfig({
Expand Down

0 comments on commit 06100d0

Please sign in to comment.