hunk.code_window: const FALLBACK = Symbol("fallback");
   // Modified version of mapSample from S-array[https://github.com/adamhaile/S-array] by Adam Haile
   export function mapArray<T, U>(
     list: () => T[],
     mapFn: (v: T, i: () => number) => U,
     options: { fallback?: () => any } = {}
   ): () => U[] {
     let items: (T | typeof FALLBACK)[] = [],
       mapped: U[] = [],
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:   list: () => readonly T[],
  
hunk.file_path: packages/solid/src/reactive/array.ts
hunk.type: replace
file: import nodeResolve from "@rollup/plugin-node-resolve";
  import common from "@rollup/plugin-commonjs";
  import babel from "@rollup/plugin-babel";
  import copy from "rollup-plugin-copy";
  
  export default [
    {
      input: "examples/async/index.js",
      output: [
        {
          dir: "examples/async/lib",
          format: "cjs"
        }
      ],
      preserveEntrySignatures: false,
      external: ["solid-js", "solid-js/dom", "path", "express"],
      plugins: [
        nodeResolve({ preferBuiltins: true }),
        babel({
          babelHelpers: "bundled",
          presets: [["solid", { generate: "ssr", hydratable: true, async: true }]]
        }),
        common()
      ]
    },
    {
      input: "examples/shared/src/index.js",
      output: [
        {
          dir: "examples/async/public/js",
          format: "esm"
        }
      ],
      preserveEntrySignatures: false,
      plugins: [
        nodeResolve(),
        babel({
          babelHelpers: "bundled",
          presets: [["solid", { generate: "dom", hydratable: true }]]
        }),
        common(),
        copy({
          targets: [
            {
              src: ["examples/shared/static/*"],
              dest: "examples/async/public"
            }
          ]
        })
      ]
    }
  ];
  