From 3f73aa6373fa9ed5d879cc4f8581a65ebcf7de51 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 4 Feb 2025 13:33:06 +0100 Subject: [PATCH] front: switch package type to module Modules are the standard way to handle JavaScript imports. osrd-ui already uses modules everywhere, but osrd is lagging behind. This causes errors when trying to build osrd-ui as a workspace inside osrd. Signed-off-by: Simon Ser --- front/package.json | 1 + front/{vite.config.mts => vite.config.ts} | 0 2 files changed, 1 insertion(+) rename front/{vite.config.mts => vite.config.ts} (100%) diff --git a/front/package.json b/front/package.json index 0fe11414fcd..c2874a45d37 100644 --- a/front/package.json +++ b/front/package.json @@ -2,6 +2,7 @@ "name": "osrd", "version": "0.1.0", "private": true, + "type": "module", "dependencies": { "@ag-media/react-pdf-table": "^2.0.1", "@nivo/core": "^0.88.0", diff --git a/front/vite.config.mts b/front/vite.config.ts similarity index 100% rename from front/vite.config.mts rename to front/vite.config.ts