How to remove Typescript assert when using npm run build?

Viewed 338

What is the best way to remove Typescript asserts so that a production build created using npm run build is assert free?

Thank you

1 Answers

The fastest solution I know is to use assert-plus on your project.

You can easily deactivate assertion according to your environment (production, development,..).

Related