Home

Issue: 2087

Using ES6 features server-side

[issue link]

I would like to be able to use ES6 features such as import and async server-side. I’m currently building an app based on the auth routes example. Since I would like to share some plugins between Nuxt backend and frontend (such as an axios instance that posts to the api), this would make things a lot cleaner. Currently, I would either have to make sure all the code is basic js, or duplicate all the shared code.

I’m not an expert on build systems, so I was wondering if there is a way I can implement this myself or if it is planned to be added. Any help is appreciated!

This feature request is available on Nuxt.js community (#c1852)