-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
33 lines (31 loc) · 743 Bytes
/
vite.config.js
File metadata and controls
33 lines (31 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/// <reference types="vitest" />
import {defineConfig} from 'vite';
import hydrogen from '@shopify/hydrogen/plugin';
import VitePluginHtmlEnv from 'vite-plugin-html-env';
/// eslint-disable-next-line no-undef
// const env = () => Oxygen.env;
export default defineConfig({
plugins: [
hydrogen(),
VitePluginHtmlEnv({
compiler: true,
prefix: '%',
suffix: '%',
envPrefixes: [''],
// ...env(),
}),
],
resolve: {
alias: [{find: /^~\/(.*)/, replacement: '/src/$1'}],
},
optimizeDeps: {
include: ['@headlessui/react', 'clsx', 'react-use', 'typographic-base'],
},
test: {
globals: true,
testTimeout: 10000,
hookTimeout: 10000,
maxThreads: 1,
minThreads: 1,
},
});