diff --git a/apps/demo/config/vite/app.ts b/apps/demo/config/vite/app.ts index 469fd2401e..5b08718c07 100644 --- a/apps/demo/config/vite/app.ts +++ b/apps/demo/config/vite/app.ts @@ -4,6 +4,7 @@ import handlebars from 'vite-plugin-handlebars'; // Vite config cannot import untranspiled ES modules // so `import { SERVERS } from '@lmc-eu/spirit-commmon';` will not work // to make it work the package must be transpiled into CommonJS +// as a workaround, we can import the file directly // @see: https://github.com/vitejs/vite/issues/5370 import { SERVERS } from '../../../../packages/common/constants/servers'; import { getNestedDirs, mapKeys } from '../../scripts/prepareDist';