UNPKG

mr-excel

Version:

A versatile JavaScript library for effortlessly generating .xlsx files from input objects. Seamlessly create Excel spreadsheets with data, formatting, formulas, and more.

28 lines (26 loc) 538 B
import { resolve } from "path"; import { defineConfig } from "vite"; import dts from "vite-plugin-dts"; export default defineConfig({ build: { lib: { entry: resolve(__dirname, "src/index.ts"), name: "ExcelTable", fileName: "excel-table", formats: ["umd", "cjs", "es", "system", "iife", "amd"], }, rollupOptions: { external: ["JSzip"], output: { globals: { jszip: "JSzip", }, }, }, }, plugins: [ dts({ rollupTypes: true, }), ], });