In many vite.config.ts files, we read the package.json to mark the dependencies of a library external, which means the bundler will not include them. We rely on tsconfig.json configuration resolveJsonModule: true to read the package.json file. However, this setting also affects the production code.
The Import attributes syntax could be used instead: it is supported for JSON since Node 20.10, so it can be used in our dev environments. Using it lets us keep resolveJsonModule only on the single case where it is actually needed in production: for the Emoji data for ProseMirror.