Skip to content

Commit

Permalink
fixup! Refactor(demo): Use server settings directly from the common p…
Browse files Browse the repository at this point in the history
…ackage
  • Loading branch information
literat committed Nov 4, 2024
1 parent 87e7fed commit 374fcba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/demo/config/vite/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { join, resolve } from 'path';
import { defineConfig } from 'vite';
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
// @see: https://github.com/vitejs/vite/issues/5370
import { SERVERS } from '../../../../packages/common/constants/servers';
import { getNestedDirs, mapKeys } from '../../scripts/prepareDist';
Expand Down

0 comments on commit 374fcba

Please sign in to comment.