Extends the Chrome Developer Tools, adding a new Network Panel in the Developer Tools window with better searching and response previews. https://leviolson.com/posts/chrome-ext-better-network-panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

4 years ago
  1. import buble from '@rollup/plugin-buble';
  2. export default [
  3. {
  4. input: "src/codemirror.js",
  5. output: {
  6. banner: `// CodeMirror, copyright (c) by Marijn Haverbeke and others
  7. // Distributed under an MIT license: https://codemirror.net/LICENSE
  8. // This is CodeMirror (https://codemirror.net), a code editor
  9. // implemented in JavaScript on top of the browser's DOM.
  10. //
  11. // You can find some technical background for some of the code below
  12. // at http://marijnhaverbeke.nl/blog/#cm-internals .
  13. `,
  14. format: "umd",
  15. file: "lib/codemirror.js",
  16. name: "CodeMirror"
  17. },
  18. plugins: [ buble({namedFunctionExpressions: false}) ]
  19. },
  20. {
  21. input: ["src/addon/runmode/runmode-standalone.js"],
  22. output: {
  23. format: "iife",
  24. file: "addon/runmode/runmode-standalone.js",
  25. name: "CodeMirror",
  26. freeze: false, // IE8 doesn't support Object.freeze.
  27. },
  28. plugins: [ buble({namedFunctionExpressions: false}) ]
  29. },
  30. {
  31. input: ["src/addon/runmode/runmode.node.js"],
  32. output: {
  33. format: "cjs",
  34. file: "addon/runmode/runmode.node.js",
  35. name: "CodeMirror",
  36. freeze: false, // IE8 doesn't support Object.freeze.
  37. },
  38. plugins: [ buble({namedFunctionExpressions: false}) ]
  39. },
  40. ];