Skip to content

Commit

Permalink
feat(json): use stable JSON module
Browse files Browse the repository at this point in the history
The JSON module is now stable in Node.js (as per the latest v22.x docs), so it can be safely used without issues.
  • Loading branch information
shivarm authored Feb 26, 2025
1 parent 326f383 commit bfb07a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pkgJson from './package.json';
import pkgJson from './package.json' with { type: 'json' };

const composeVersion = () => {
if (!pkgJson || !pkgJson.version) {
Expand Down

0 comments on commit bfb07a4

Please sign in to comment.