hunk.code_window:       jest-worker: 26.6.2
         p-limit: 3.1.0
         schema-utils: 3.1.1
         serialize-javascript: 5.0.1
         source-map: 0.6.1
         terser: 5.15.1
         webpack: 4.46.0
         webpack-sources: 1.4.3
       transitivePeerDependencies:
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:       terser: 5.12.1
  
hunk.file_path: pnpm-lock.yaml
hunk.type: replace
file: import { defineConfig } from 'vite';
  import vue from '@vitejs/plugin-vue';
  import typescript2 from 'rollup-plugin-typescript2';
  
  // https://vitejs.dev/config/
  export default defineConfig({
    plugins: [
      vue({
        template: {
          compilerOptions: {
            // treat all tags with a dash as custom elements
            isCustomElement: (tag) => tag.includes('-'),
          },
        },
      }),
      typescript2({
        check: false,
        include: ['src/components/**/*.vue'],
        tsconfigOverride: {
          compilerOptions: {
            outDir: 'dist',
            sourceMap: true,
            declaration: true,
            declarationMap: true,
          },
        },
        exclude: ['vite.config.ts'],
      }),
    ],
    build: {
      cssCodeSplit: false,
      lib: {
        entry: './src/index.ts',
        formats: ['es', 'cjs'],
        fileName: (format) => `index.${format}.js`,
      },
      rollupOptions: {
        external: ['vue'],
        output: {
          exports: 'named',
          globals: {
            vue: 'Vue',
          },
        },
      },
    },
  });
  