use-axios-http-requests-ts
Version:
Incredibly useful package for making HTTP requests! This package eliminates the need for the Fetch API and is built on top of the powerful library [axios](https://www.npmjs.com/package/axios).
14 lines (12 loc) • 344 B
JavaScript
import { defineConfig } from "rollup";
import typescript from "@rollup/plugin-typescript";
export default defineConfig({
input: "src/index.ts",
output: {
dir: "dist",
format: "es",
name: "use-axios-http-requests-ts",
},
external: ["react", "axios"],
plugins: [typescript({ tsconfig: "tsconfig.json" })],
});