fix: remove async imports
https://github.com/backstage/backstage/issues/24864 Signed-off-by: Marc Palm <17670840+marcpalm@users.noreply.github.com> Signed-off-by: Marc Palm <info@marcpalm.com>
This commit is contained in:
@@ -165,12 +165,12 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
|
||||
});
|
||||
|
||||
if (process.env.EXPERIMENTAL_VITE) {
|
||||
const vite = await import('vite');
|
||||
const { default: viteReact } = await import('@vitejs/plugin-react');
|
||||
const { nodePolyfills: viteNodePolyfills } = await import(
|
||||
const vite = require('vite');
|
||||
const { default: viteReact } = require('@vitejs/plugin-react');
|
||||
const { nodePolyfills: viteNodePolyfills } = require(
|
||||
'vite-plugin-node-polyfills'
|
||||
);
|
||||
const { createHtmlPlugin: viteHtml } = await import('vite-plugin-html');
|
||||
const { createHtmlPlugin: viteHtml } = require('vite-plugin-html');
|
||||
viteServer = await vite.createServer({
|
||||
define: {
|
||||
global: 'window',
|
||||
|
||||
Reference in New Issue
Block a user