JSON
Rspack has built-in support for JSON, and you can import JSON files directly.
Default import
example.json
index.js
Named import
In non-.mjs non-strict ESM files, you can directly import properties from JSON.
example.json
index.js
Import attributes
Rspack supports import attributes, and you can use import attributes to import JSON:
index.js

