{"size": 406, "ext": "js", "max_stars_repo_path": "vite.config.js", "max_stars_repo_name": "ThibaudM/mapbox-gl-indoor-plugin", "max_stars_repo_stars_event_min_datetime": "2020-05-28T10:57:10.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-14T09:57:34.000Z", "max_issues_repo_path": "vite.config.js", "max_issues_repo_name": "ThibaudM/mapbox-gl-indoor-plugin", "max_issues_repo_issues_event_min_datetime": "2020-08-19T14:14:21.000Z", "max_issues_repo_issues_event_max_datetime": "2020-11-04T15:55:05.000Z", "max_forks_repo_path": "vite.config.js", "max_forks_repo_name": "ThibaudM/mapbox-gl-indoor-plugin", "max_forks_repo_forks_event_min_datetime": "2020-05-28T11:10:36.000Z", "max_forks_repo_forks_event_max_datetime": "2020-10-17T04:03:38.000Z"}
{"max_stars_count": 12, "max_issues_count": 4, "max_forks_count": 4, "avg_line_length": 25.375, "max_line_length": 62, "alphanum_fraction": 0.5541871921}
// vite.config.js
import { resolve } from 'path';
import { defineConfig } from 'vite';

export default defineConfig({
    root: resolve(__dirname, './example'),
    build: {
        lib: {
            entry: resolve(__dirname, 'src/index.ts'),
            name: 'mapgl_indoor',
            fileName: (format) => `map-gl-indoor.${format}.js`
        },
        outDir: resolve(__dirname, 'dist'),
    }
});
