Skip to content

Commit

Permalink
fix: disable resolveJsonModule for vite/node
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Jun 2, 2022
1 parent f1a4695 commit eed8f1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path, { resolve } from 'path'
import { fileURLToPath } from 'url'
// @ts-expect-error Cannot import JSON files by default
import { version } from '../../package.json'

export const VERSION = version as string
Expand Down
3 changes: 1 addition & 2 deletions packages/vite/src/node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"outDir": "../../dist/node",
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"sourceMap": true,
"resolveJsonModule": true
"sourceMap": true
}
}

0 comments on commit eed8f1f

Please sign in to comment.