How to avoid code splitting ? #8986
Unanswered
ahetawal-p
asked this question in
Q&A
Replies: 1 comment
-
Have you tried |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am creating a standalone single
.js
file using parcel for my react app.I am using this command to bundle all the code.
The above works great, and I get a single output of index.ts in
public/widget
folder.Recently I added segment integration to my react app.
npm package :
@segment/analytics-next
After adding this I see multiple code split bundles are being created by parcel, and the output in the
public/widget
looks like thisBut for the embed component to work, I would want to still have the single
embed.js
file.How can achieve this ?
NOTE: Removing segment dependency and all related code, bring back the original intended bundle state.
Beta Was this translation helpful? Give feedback.
All reactions