mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix: warn for non serializable data instead of Error (#4046)
* use @nuxtjs/devalue * use @nuxtjs/devalue * lock file * lock file * fix test
This commit is contained in:
parent
521c3778bd
commit
d35fc8f015
@ -8,7 +8,7 @@ import fsExtra from 'fs-extra'
|
|||||||
import hash from 'hash-sum'
|
import hash from 'hash-sum'
|
||||||
import webpack from 'webpack'
|
import webpack from 'webpack'
|
||||||
import serialize from 'serialize-javascript'
|
import serialize from 'serialize-javascript'
|
||||||
import devalue from 'devalue'
|
import devalue from '@nuxtjs/devalue'
|
||||||
import MFS from 'memory-fs'
|
import MFS from 'memory-fs'
|
||||||
import webpackDevMiddleware from 'webpack-dev-middleware'
|
import webpackDevMiddleware from 'webpack-dev-middleware'
|
||||||
import webpackHotMiddleware from 'webpack-hot-middleware'
|
import webpackHotMiddleware from 'webpack-hot-middleware'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import path from 'path'
|
import path from 'path'
|
||||||
import crypto from 'crypto'
|
import crypto from 'crypto'
|
||||||
|
|
||||||
import devalue from 'devalue'
|
import devalue from '@nuxtjs/devalue'
|
||||||
import serveStatic from 'serve-static'
|
import serveStatic from 'serve-static'
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import fs from 'fs-extra'
|
import fs from 'fs-extra'
|
||||||
|
@ -72,6 +72,7 @@
|
|||||||
"@babel/core": "^7.1.2",
|
"@babel/core": "^7.1.2",
|
||||||
"@babel/polyfill": "^7.0.0",
|
"@babel/polyfill": "^7.0.0",
|
||||||
"@nuxtjs/babel-preset-app": "^0.7.0",
|
"@nuxtjs/babel-preset-app": "^0.7.0",
|
||||||
|
"@nuxtjs/devalue": "^1.0.0",
|
||||||
"@nuxtjs/friendly-errors-webpack-plugin": "^2.0.2",
|
"@nuxtjs/friendly-errors-webpack-plugin": "^2.0.2",
|
||||||
"@nuxtjs/opencollective": "^0.1.0",
|
"@nuxtjs/opencollective": "^0.1.0",
|
||||||
"@nuxtjs/youch": "^4.2.3",
|
"@nuxtjs/youch": "^4.2.3",
|
||||||
@ -86,7 +87,6 @@
|
|||||||
"css-loader": "^1.0.0",
|
"css-loader": "^1.0.0",
|
||||||
"cssnano": "^4.1.4",
|
"cssnano": "^4.1.4",
|
||||||
"debug": "^4.1.0",
|
"debug": "^4.1.0",
|
||||||
"devalue": "^1.0.4",
|
|
||||||
"esm": "^3.0.84",
|
"esm": "^3.0.84",
|
||||||
"etag": "^1.8.1",
|
"etag": "^1.8.1",
|
||||||
"file-loader": "^2.0.0",
|
"file-loader": "^2.0.0",
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
"@babel/core": "^7.1.2",
|
"@babel/core": "^7.1.2",
|
||||||
"@babel/polyfill": "^7.0.0",
|
"@babel/polyfill": "^7.0.0",
|
||||||
"@nuxtjs/babel-preset-app": "^0.7.0",
|
"@nuxtjs/babel-preset-app": "^0.7.0",
|
||||||
|
"@nuxtjs/devalue": "^1.0.0",
|
||||||
"@nuxtjs/friendly-errors-webpack-plugin": "^2.0.2",
|
"@nuxtjs/friendly-errors-webpack-plugin": "^2.0.2",
|
||||||
"@nuxtjs/opencollective": "^0.1.0",
|
"@nuxtjs/opencollective": "^0.1.0",
|
||||||
"@nuxtjs/youch": "^4.2.3",
|
"@nuxtjs/youch": "^4.2.3",
|
||||||
@ -72,7 +73,6 @@
|
|||||||
"css-loader": "^1.0.0",
|
"css-loader": "^1.0.0",
|
||||||
"cssnano": "^4.1.4",
|
"cssnano": "^4.1.4",
|
||||||
"debug": "^4.1.0",
|
"debug": "^4.1.0",
|
||||||
"devalue": "^1.0.4",
|
|
||||||
"esm": "^3.0.84",
|
"esm": "^3.0.84",
|
||||||
"etag": "^1.8.1",
|
"etag": "^1.8.1",
|
||||||
"file-loader": "^2.0.0",
|
"file-loader": "^2.0.0",
|
||||||
|
@ -55,12 +55,12 @@
|
|||||||
"npm": ">=5.0.0"
|
"npm": ">=5.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@nuxtjs/devalue": "^1.0.0",
|
||||||
"@nuxtjs/youch": "^4.2.3",
|
"@nuxtjs/youch": "^4.2.3",
|
||||||
"chalk": "^2.4.1",
|
"chalk": "^2.4.1",
|
||||||
"compression": "^1.7.3",
|
"compression": "^1.7.3",
|
||||||
"connect": "^3.6.6",
|
"connect": "^3.6.6",
|
||||||
"consola": "^1.4.3",
|
"consola": "^1.4.3",
|
||||||
"devalue": "^1.0.4",
|
|
||||||
"esm": "^3.0.84",
|
"esm": "^3.0.84",
|
||||||
"etag": "^1.8.1",
|
"etag": "^1.8.1",
|
||||||
"fresh": "^0.5.2",
|
"fresh": "^0.5.2",
|
||||||
|
Loading…
Reference in New Issue
Block a user