Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

陈婉清 / ali-restful

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • ali-restful
  • node_modules
  • psl
  • vite.config.js
  • chenwq's avatar
    create · 5f3e3737
    chenwq committed Jun 01, 2025
    5f3e3737
vite.config.js 431 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import { resolve } from 'node:path';
import { defineConfig } from 'vite';

export default defineConfig({
  build: {
    target: 'es2015',
    lib: {
      entry: resolve(__dirname, 'index.js'),
      name: 'psl',
      formats: ['es', 'cjs', 'umd'],
      fileName: format => (
        format === 'umd'
          ? 'psl.umd.cjs'
          : format === 'cjs'
            ? 'psl.cjs'
            : 'psl.mjs'
      ),
    },
  },
});