Currently migrating from an older version of a JS library (sweetAlerts), to a newer version.
wp_enqueue_script( ‘sweet-alert’, plugin_dir_url( __FILE__ ) . ‘js/sweetalert.min.js’, array(), $this->version, false );
wp_enqueue_script( ‘sweet-alert-latest’, plugin_dir_url( __FILE__ ) . ‘js/sweetalert-latest.min.js’, array(), $this->version, false );
Read more here:: Loading two versions of same JS libary