rollup.config.js 298 B

12345678910111213141516
  1. import json from 'rollup-plugin-json';
  2. // rollup.config.js
  3. export default {
  4. input: './all_mock.js',
  5. output: {
  6. file: './functions/mock/index.js',
  7. format: 'umd',
  8. name: 'mock',
  9. },
  10. plugins: [
  11. json({
  12. preferConst: true, // Default: false
  13. indent: ' ',
  14. }),
  15. ],
  16. };