Skip to content

Commit bfb07a4

Browse files
authored
feat(json): use stable JSON module
The JSON module is now stable in Node.js (as per the latest v22.x docs), so it can be safely used without issues.
1 parent 326f383 commit bfb07a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nuxt.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pkgJson from './package.json';
1+
import pkgJson from './package.json' with { type: 'json' };
22

33
const composeVersion = () => {
44
if (!pkgJson || !pkgJson.version) {

0 commit comments

Comments
 (0)