From 4ecdc7275f4f5abc9e2f4eba758a4c70d4b5b94e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 2 Feb 2023 23:29:42 +0000 Subject: [PATCH] fix: use default import of devalue --- packages/generator/src/generator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/generator/src/generator.js b/packages/generator/src/generator.js index 85f32a9480..93cb55343a 100644 --- a/packages/generator/src/generator.js +++ b/packages/generator/src/generator.js @@ -1,7 +1,7 @@ import path from 'path' import chalk from 'chalk' import consola from 'consola' -import { uneval } from 'devalue' +import devalue from 'devalue' import fsExtra from 'fs-extra' import { defu } from 'defu' import htmlMinifier from 'html-minifier' @@ -64,7 +64,7 @@ export default class Generator { await this.nuxt.callHook('generate:manifest', this.manifest, this) const manifestPath = path.join(this.staticAssetsDir, 'manifest.js') await fsExtra.ensureDir(this.staticAssetsDir) - await fsExtra.writeFile(manifestPath, `__NUXT_JSONP__("manifest.js", ${uneval(this.manifest)})`, 'utf-8') + await fsExtra.writeFile(manifestPath, `__NUXT_JSONP__("manifest.js", ${devalue(this.manifest)})`, 'utf-8') consola.success('Static manifest generated') }