Approach 2 does not work because accoring to MDN:
Is how you import a module for Import a module for its side effects only
Import an entire module for side effects only, without importing anything. This runs the module's global code, but doesn't actually import any values.
So, await import('/path/to/my-module.js'); won't ...
I don't know too much about what you're trying to do (but it makes sense and I think I get it).
Personally my feeling is that all you are missing is the right helper functions to make your code more transparent. I don't know how efficient this should be and hence if the overhead of function calls matters to you, but I am guessing no as otherwise you would ...