Skip to content

Commit

Permalink
Fix preact alias
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Sep 14, 2024
1 parent cd52647 commit 1aa4dc2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/preact-urql/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { mergeConfig } from 'vitest/config';
import path from 'node:path';
import baseConfig from '../../vitest.config';

console.log(path.resolve(__dirname, './node_modules/preact/hooks/dist/hooks.js'));
export default mergeConfig(baseConfig, {
resolve: {
alias: {
'preact/hooks':
__dirname +
'/packages/preact-urql/node_modules/preact/hooks/dist/hooks.js',
preact:
__dirname + '/packages/preact-urql/node_modules/preact/dist/preact.js',
'preact/hooks': path.resolve(__dirname, './node_modules/preact/hooks/dist/hooks.js'),
preact: path.resolve(__dirname, './node_modules/preact/dist/preact.js')
},
},
});

0 comments on commit 1aa4dc2

Please sign in to comment.