Webpack ast changes according to url

Viewed 13

I have a url which will fetch webpack bundle. let the url be: xyz.com

Now if I fetch the following url: xyz.com/abc then in that bundle wherever there is a condition on abc as true that part of code will be only included in the bundle.

How can achieve that?

0 Answers
Related