rollup.mjs 385 B

1234567891011121314151617181920212223
  1. import common from '@rollup/plugin-commonjs'
  2. import resolve from '@rollup/plugin-node-resolve'
  3. import json from '@rollup/plugin-json'
  4. import node from 'rollup-plugin-polyfill-node'
  5. export default {
  6. context: 'window',
  7. moduleContext: {id: 'window'},
  8. plugins: [
  9. common(),
  10. resolve(),
  11. json(),
  12. node(),
  13. ],
  14. output: {
  15. format: 'iife',
  16. name: 'mdit',
  17. },
  18. }