What is the best way to remove Typescript asserts so that a production build created using
npm run build
is assert free?
Thank you
What is the best way to remove Typescript asserts so that a production build created using
npm run build
is assert free?
Thank you
The fastest solution I know is to use assert-plus on your project.
You can easily deactivate assertion according to your environment (production, development,..).
© 2022 - 2024 — McMap. All rights reserved.
assert(condition)
. Did I miss something in the library ? – Ashbey