UNPKG

react-google-geocoding

Version:

A lightweight wrapper around Google Places Autocomplete and Directions APIs.

30 lines (27 loc) 580 B
import resolve from "@rollup/plugin-node-resolve"; import commonjs from "@rollup/plugin-commonjs"; import typescript from "@rollup/plugin-typescript"; import { terser } from "rollup-plugin-terser"; export default { input: "src/index.ts", output: [ { file: "dist/index.cjs.js", format: "cjs", }, { file: "dist/index.esm.js", format: "esm", }, ], plugins: [ resolve(), commonjs(), typescript({ jsx: "react", include: ["**/*.ts", "**/*.tsx"], }), terser(), ], external: ["react", "react-dom"], };