Skip to content

Commit 548a606

Browse files
authored
refactor: import json with attributes (#5392)
1 parent 1510d46 commit 548a606

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/node/build/render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { isBooleanAttr } from '@vue/shared'
22
import { mkdir, realpath, rm, writeFile } from 'node:fs/promises'
33
import path from 'node:path'
44
import { minify, normalizePath, type Rolldown } from 'vite'
5-
import { version } from '../../../package.json'
5+
import { version } from '../../../package.json' with { type: 'json' }
66
import type { SiteConfig } from '../config'
77
import {
88
EXTERNAL_URL_RE,

src/node/utils/logVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import c from 'picocolors'
22
import { version as viteVersion, type Logger } from 'vite'
3-
import { version } from '../../../package.json'
3+
import { version } from '../../../package.json' with { type: 'json' }
44

55
export function logVersion(logger: Logger) {
66
logger.info(

0 commit comments

Comments
 (0)