From 35a87f40e1fae3d159dd973a66fe587220d3e33c Mon Sep 17 00:00:00 2001 From: Jonathan Rochkind Date: Tue, 16 Jul 2024 12:25:50 -0400 Subject: [PATCH] Changing name of vite config from .ts (typescript) to .mjs (javascript module) avoids vite deprecation message. Vite deprecation message looks like: ``` remote: Build with Vite complete: /tmp/build_93418466/public/vite remote: The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details. ``` And started in vite 5.x. Relation to .ts typescript and simple solution suggested from https://github.com/ElMassimo/vite_ruby/issues/431 Seems to work great. --- vite.config.ts => vite.config.mjs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename vite.config.ts => vite.config.mjs (100%) diff --git a/vite.config.ts b/vite.config.mjs similarity index 100% rename from vite.config.ts rename to vite.config.mjs