Skip to content

Commit

Permalink
fix: Svelte with auto/node adapter (Import UI only in browser)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar committed Aug 27, 2022
1 parent 0fc92b7 commit 8e1e6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/TolgeeProvider.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
const tolgee = Tolgee.use(IcuFormatter).init({
wrapperMode: 'invisible',
ui:
process.env.NODE_ENV !== 'development'
process.env.NODE_ENV !== 'development' && typeof window == 'undefined'
? undefined
: typeof require !== 'undefined'
? require('@tolgee/ui')
Expand Down

0 comments on commit 8e1e6ef

Please sign in to comment.