Skip to content

Commit

Permalink
Attempt to fix solid
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Sep 14, 2024
1 parent 1aa4dc2 commit 8f54bab
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 484 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"terser": "^5.17.1",
"typescript": "^5.4.4",
"vite": "^5.4.4",
"vite-tsconfig-paths": "^4.0.0",
"vitest": "^2.1.0"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/introspection/src/minifyIntrospectionQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const minifyIntrospectionType = (
};

case 'INPUT_OBJECT': {
// @ts-ignore TODO: add isOneOf support here
return {
kind: 'INPUT_OBJECT',
name: type.name,
Expand Down
1 change: 1 addition & 0 deletions packages/next-urql/src/useQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,6 @@ export function useQuery<

useUrqlValue(request.key);

// @ts-ignore Sorry what?
return [result, execute];
}
13 changes: 8 additions & 5 deletions packages/solid-urql/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { mergeConfig } from 'vitest/config';
import { defineProject, mergeConfig } from 'vitest/config';
import solidPlugin from 'vite-plugin-solid';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {
export default mergeConfig({ ...baseConfig, plugins: [solidPlugin({ hot: false })] }, defineProject({
// Must be pinned to 2.8.2, see: https://github.com/solidjs/vite-plugin-solid/issues/141
plugins: [solidPlugin({ hot: false })],
test: {
environment: 'jsdom'
},
resolve: {
dedupe: ['solid-js'],
},
});
}})
);

Loading

0 comments on commit 8f54bab

Please sign in to comment.