Mackelito
Mackelito

Reputation: 4421

Angular and tree shaking environment.ts file

I have a general question,

If I have my environment file

export const environment = {
  production: true,
  featureAEnabled: false,
};

Then in a component

if (environtment.featureAEnabled) {
// Doing stuff
}

Will this still be a part of the bundle even do it will never be used?

Upvotes: 3

Views: 122

Answers (0)

Related Questions