nuxt-json-data
v0.0.4
Published
Experimental module for [Nuxt.js](https://nuxtjs.org) that changes `asyncData` and `Vuex` hydration to raw JSON serialization (like [Next.js](https://nextjs.org)) instead of using [devalue](https://www.npmjs.com/package/@nuxt/devalue). For large `asyncDat
Downloads
17
Readme
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
:
export default {
modules: ['nuxt-json-data']
}