vite-plugin-csv
CSV loader for Vite
Install
Install
yarn add vite-plugin-csv -D
Add it to vite.config.js
// vite.config.js
import CSV from "vite-plugin-csv";
export default {
plugins: [CSV()],
};
Usage
TypeScript Shim
declare module "*.csv" {
export default <{[key: string]: any}>[];
}