Rollup JSON Plugin
Import JSON data into a JavaScript bundle near its point of use.
rollup · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a Node.js project, install @rollup/[email protected]. Build a tiny isolated fixture that imports a stock JSON file.
What we tested
6.1.0. Build a tiny isolated fixture that imports a stock JSON file. Bundled the input and made the stock fixture's count available through the generated module.