Describe the bug
It seems that when building and Angular 11 project for production with "ng build --prod" there are certain parts of the code that get optimised out, causing errors. Specifically line 5 of daterangepicker.config.ts "dayjs.extend(localeData)" seems to be gone, causing an error on line 38 "daysOfWeek: dayjs.weekdaysMin(),":
Uncaught TypeError: ae.weekdaysMin is not a function
Naturally, since the extension didn't happen, this function is not present on the dayjs object.
Screenshots
In the Chrome debugger you can see the lines are greyed out, which I'm assuming means that the line that the sourcemap is pointing to does not actually exist in the minified production code.
Has anyone actually got this version working on a production built Angular 11+ app?
Versions
Describe the bug It seems that when building and Angular 11 project for production with "ng build --prod" there are certain parts of the code that get optimised out, causing errors. Specifically line 5 of daterangepicker.config.ts "dayjs.extend(localeData)" seems to be gone, causing an error on line 38 "daysOfWeek: dayjs.weekdaysMin(),":
Uncaught TypeError: ae.weekdaysMin is not a function
Naturally, since the extension didn't happen, this function is not present on the dayjs object.
Screenshots In the Chrome debugger you can see the lines are greyed out, which I'm assuming means that the line that the sourcemap is pointing to does not actually exist in the minified production code.![Screenshot from 2021-11-04 21-59-53](https://user-images.githubusercontent.com/151936/140419440-c0e022cd-f77a-4228-b5fb-18b509e25319.png)
Has anyone actually got this version working on a production built Angular 11+ app?