Declare every dependency in the array: wp_enqueue_script('my', ..., ['wp-element', 'jquery']). WordPress resolves the load order automatically.
For modules use wp_enqueue_script_module (WP 6.5+) — it adds type="module" and respects ES module imports.
The strategy parameter on wp_register_script accepts defer and async. Use it for non-critical scripts to keep the main thread free.