Skip to content

Commit

Permalink
Merge pull request #1458 from silx-kit/faster-build
Browse files Browse the repository at this point in the history
Skip linting and type checking when building for production to save time
  • Loading branch information
axelboc authored Jul 25, 2023
2 parents 2dd951d + e368862 commit 43e790d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/demo/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import eslintPlugin from 'vite-plugin-eslint';
export default defineConfig({
server: { open: true },
preview: { open: true },
plugins: [react(), eslintPlugin(), checker({ typescript: true })],
plugins: [
react(),
{ ...eslintPlugin(), apply: 'serve' }, // dev only to reduce build time
{ ...checker({ typescript: true }), apply: 'serve' }, // dev only to reduce build time
],

// `es2020` required by @h5web/h5wasm for BigInt `123n` notation support
optimizeDeps: { esbuildOptions: { target: 'es2020' } },
Expand Down

0 comments on commit 43e790d

Please sign in to comment.