Skip to content

Commit

Permalink
fix: use default import of devalue
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 2, 2023
1 parent 6850af1 commit 4ecdc72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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'
Expand Down Expand Up @@ -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')
}

Expand Down

0 comments on commit 4ecdc72

Please sign in to comment.