Nuxt.js: Using ES6 features server-side

Created on 12 Nov 2017  路  2Comments  路  Source: nuxt/nuxt.js

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)

Most helpful comment

Hi @WouterFlorijn & thanks for your idea. Sure it will be planned for 2.0. (Related to #1935)

All 2 comments

Hi @WouterFlorijn & thanks for your idea. Sure it will be planned for 2.0. (Related to #1935)

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vadimsg picture vadimsg  路  3Comments

pehbehbeh picture pehbehbeh  路  3Comments

shyamchandranmec picture shyamchandranmec  路  3Comments

gary149 picture gary149  路  3Comments

lazycrazy picture lazycrazy  路  3Comments