nuxt-json-data
Experimental module for Nuxt.js that changes asyncData
and Vuex
hydration to raw JSON serialization (like Next.js) instead of using devalue. For large asyncData
payloads, it resulted in up to 40% better performance in some tests.
Warning: XSS prone, use with real care when you understand what you are doing :)
Install
npm i nuxt-json-data --save
Usage
In nuxt.config.js
:
modules: 'nuxt-json-data'