Skip to content

Commit

Permalink
Tech - Ré-écrit le valeur pointer-events dans le bundle Frontend (#…
Browse files Browse the repository at this point in the history
…3700)

## Linked issues

- Resolve #3211

----

- [ ] Tests E2E (Cypress)
  • Loading branch information
louptheron authored Sep 30, 2024
2 parents 58718c3 + 422b1af commit 81ec604
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
23 changes: 23 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"@import-meta-env/prepare": "0.2.0",
"@import-meta-env/unplugin": "0.6.0",
"@jest/globals": "29.7.0",
"@rollup/plugin-replace": "6.0.1",
"@swc/core": "1.7.23",
"@swc/jest": "0.2.36",
"@testing-library/react": "15.0.7",
Expand Down
10 changes: 9 additions & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable import/no-extraneous-dependencies, sort-keys-fix/sort-keys-fix */

import importMetaEnv from '@import-meta-env/unplugin'
import replace from '@rollup/plugin-replace'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import svgr from 'vite-plugin-svgr'
Expand All @@ -10,8 +11,15 @@ import viteTsconfigPaths from 'vite-tsconfig-paths'
// eslint-disable-next-line import/no-default-export
export default defineConfig({
build: {
minify: false,
outDir: './build',
sourcemap: true
sourcemap: true,
rollupOptions: {
plugins: replace({
'pointerEvents: isScrolling ? "none" : void 0': 'pointerEvents: null',
preventAssignment: true
})
}
},

plugins: [
Expand Down

0 comments on commit 81ec604

Please sign in to comment.