Manjeet

Measure execution time of a function using javascript

You can measure the performance of javascript code using console.time() function. This can be helpful in debugging and optimizing code which is taking lot of memory. console.time() can be used with console.timeEnd(). console.timeEnd() function tells console to stop calculating the time. You will see result as below: Running loop :0 timesRunning loop :1 timesRunning loop

Measure execution time of a function using javascript Read More »

How to resolve esm-bundler build warning when running vue 3 and laravel 8

When running npm run watch below warning is displayed: Warning details: You can add below code in webpack.mix.js to the get rid of this warning Used Define Plugin to set two flags – https://webpack.js.org/plugins/define-plugin/ VUE_OPTIONS_API (enable/disable Options API support, default: true)VUE_PROD_DEVTOOLS (enable/disable devtools support in production, default: false)

How to resolve esm-bundler build warning when running vue 3 and laravel 8 Read More »

Scroll to Top