Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not resolve assert in rollup #75

Conversation

nandito
Copy link
Collaborator

@nandito nandito commented Oct 4, 2023

This currently breaks the apps that use the Browser SDK as it relies on another unresolved dep. Removing it from the nodeResolve fn makes the test React apps work with the SDK again.

However Vite apps are going to break. But they're broken without this change too. An easy solution on the vite app side is to add the process to the config (vitejs/vite#1973 (comment)) like this:

export default defineConfig({
  // ...
  define: {
    'process.env': process.env
  }
})

Related PR: #60

This breaks the app currently as it uses another unresolved dep.
Removing it from the `nodeResolve` fn makes the test React apps work
with the SDK.

However Vite apps are going to break. But they're broken without this
change too.

Related PR: #60
@nandito nandito self-assigned this Oct 4, 2023
@nandito nandito merged commit da8ff9e into development Oct 6, 2023
1 check passed
@nandito nandito deleted the nandor/pan-320-browser-sdk-fails-to-start-because-of-a-missing-dependency branch October 6, 2023 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants