Skip to content
Discussion options

You must be logged in to vote

When migrating to Vite

I think it might be interesting and helpful if you can show how you're building the app before moving to Vite. For example, were you using CJS at the time (i.e. without "type": "module" in your remix app)?

Your setup looks a bit tricky to me. Especially packages/pubsub is not a traditional npm package since it only provides typescript ./src/index.ts for main app to bundle it together.
I wasn't expecting that but it seems Remix/Vite is bundling entire @google-cloud/pubsub together with packages/pubsub in this scenario.
If there is a comparison with previous Remix/Esbuild, then that might give some hint about the issue.

Then one peculiar thing I found is that, if I …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jam-fran
Comment options

@hi-ogawa
Comment options

Answer selected by jam-fran
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants