Skip to content

Commit 8867eca

Browse files
authored
✨ feat: Update drupal vite (#172)
1 parent 20cf230 commit 8867eca

File tree

3 files changed

+1018
-976
lines changed

3 files changed

+1018
-976
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
This file is optional since we are only using the fetch exchange.
3+
Added to the starter to show how to configure exchanges in a Drupal Vite project.
4+
You can remove this file if you are not using any other exchanges.
5+
*/
6+
import { DrupalDecoupledConfig } from 'drupal-vite'
7+
import { fetchExchange } from '@urql/core'
8+
9+
export default {
10+
exchanges: [fetchExchange],
11+
} satisfies DrupalDecoupledConfig

starters/react-router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"clsx": "^2.1.1",
3030
"composable-functions": "^5.0.0",
3131
"drupal-decoupled": "^0.2.2",
32-
"drupal-vite": "^0.0.2",
32+
"drupal-vite": "^0.4.0",
3333
"gql.tada": "^1.8.10",
3434
"isbot": "^5.1.17",
3535
"lucide-react": "^0.474.0",

0 commit comments

Comments
 (0)