Skip to content

Support for Browser Mode #390

Closed Answered by eric1234
eric1234 asked this question in Q&A
Jun 29, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Lol, nevermind. My previous attempts to work around it involved whitelisting the CJS modules it was having trouble importing with the optimizeDeps. When I instead just did optimizeDeps for the entire @testing-library/svelte it seemed to work out of the box:

optimizeDeps: {
  include: [
    '@testing-library/svelte'
  ],
},

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by eric1234
Comment options

You must be logged in to vote
1 reply
@eric1234
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants