refactor: import json with attributes (#5392)

pull/5307/merge
btea 3 weeks ago committed by GitHub
parent 1510d46a5f
commit 548a606447
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2,7 +2,7 @@ import { isBooleanAttr } from '@vue/shared'
import { mkdir, realpath, rm, writeFile } from 'node:fs/promises'
import path from 'node:path'
import { minify, normalizePath, type Rolldown } from 'vite'
import { version } from '../../../package.json'
import { version } from '../../../package.json' with { type: 'json' }
import type { SiteConfig } from '../config'
import {
EXTERNAL_URL_RE,

@ -1,6 +1,6 @@
import c from 'picocolors'
import { version as viteVersion, type Logger } from 'vite'
import { version } from '../../../package.json'
import { version } from '../../../package.json' with { type: 'json' }
export function logVersion(logger: Logger) {
logger.info(

Loading…
Cancel
Save