rollup-plugin-json
Convert .json files to ES6 modules:
// import a single property from a JSON file,// discarding the rest;console; // import the whole file as an object;console;
Installation
npm install --save-dev rollup-plugin-json
Usage
// rollup.config.js; input: 'src/main.js' output: file: 'dist/bundle.js' format: 'iife' plugins: ;
License
MIT