JavaScript ES6 support

Hello, I recently began transitioning my Discord bot to run as a resource on my FiveM server. However, I encountered SyntaxError: Cannot use import statement outside a module and SyntaxError: Unexpected token 'export' errors when attempting to launch it. Will there be native support for ES6 modules or will I have to use CommonJS?
My package.json includes "type": "module" and has worked when ran as a separate project.

Unfortunately, I’ve come to the conclusion that FiveM does not support thenmodule syntax and for now we’re stuck with commonjs. A workaround you can do is use a compiler like webpack or just use typescript which then compiles to vanilla js and imo is probably the easiest way to do it.