Skip to content

Commit

Permalink
Add workaround for vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeckem committed May 8, 2024
1 parent 3a2f9dc commit 3209de4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ export default defineConfig(({ mode }) => {
test: {
globals: true,
environment: "happy-dom",
setupFiles: ["testing/global-setup.ts"]
setupFiles: ["testing/global-setup.ts"],

server: {
deps: {
// Workaround to fix some import issues, see
// https://github.com/open-pioneer/trails-openlayers-base-packages/issues/314
inline: [/@open-pioneer[/\\]/]
}
}
}

// disable hot reloading
Expand Down

0 comments on commit 3209de4

Please sign in to comment.