Initial Commit
This commit is contained in:
27
packages/geospatial/geo/geo-earth/vite.config.ts
Normal file
27
packages/geospatial/geo/geo-earth/vite.config.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { defineConfig } from "vite";
|
||||
import dts from "vite-plugin-dts";
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
lib: {
|
||||
entry: {
|
||||
index: "./src/index.ts",
|
||||
"earth-config/earth-config": "./src/earth-config/earth-config.ts",
|
||||
"geocoding/geocoding": "./src/geocoding/geocoding.ts",
|
||||
"geohash/geohash": "./src/geohash/geohash.ts",
|
||||
"coordinates/coordinates": "./src/coordinates/coordinates.ts",
|
||||
},
|
||||
formats: ["es"],
|
||||
},
|
||||
outDir: "dist",
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
external: [/^@suaveplan\//, "zod", /^@opentelemetry\//],
|
||||
output: {
|
||||
preserveModules: true,
|
||||
preserveModulesRoot: "src",
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [dts({ tsconfigPath: "./tsconfig.lib.json" })],
|
||||
});
|
||||
Reference in New Issue
Block a user