forked from silx-kit/myhdf5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
26 lines (23 loc) · 861 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import { checker } from 'vite-plugin-checker';
// https://github.com/gxmari007/vite-plugin-eslint/pull/90
// import eslint from 'vite-plugin-eslint';
// https://vitejs.dev/config/
export default defineConfig({
server: { open: true },
plugins: [
react(),
// { ...eslint(), apply: 'serve' }, // dev only to reduce build time
{ ...checker({ typescript: true }), apply: 'serve' }, // dev only to reduce build time
],
// Import HDF5 compression plugins as static assets
assetsInclude: ['**/*.so'],
// `es2020` required by @h5web/h5wasm for BigInt `123n` notation support
optimizeDeps: { esbuildOptions: { target: 'es2020' } },
build: {
target: 'es2020',
// Out of memory! https://github.com/vitejs/vite/issues/2433
// sourcemap: true,
},
});