Merge pull request #24745 from alper98/fix/vite-import

fix: dynamic import of vite
This commit is contained in:
Patrik Oldsberg
2024-05-14 13:56:52 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Fixed the dynamic import of vite.
+1 -1
View File
@@ -165,7 +165,7 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
});
if (process.env.EXPERIMENTAL_VITE) {
const { default: vite } = await import('vite');
const vite = await import('vite');
const { default: viteReact } = await import('@vitejs/plugin-react');
const { nodePolyfills: viteNodePolyfills } = await import(
'vite-plugin-node-polyfills'