-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvite.config.js
More file actions
25 lines (23 loc) · 640 Bytes
/
vite.config.js
File metadata and controls
25 lines (23 loc) · 640 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
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { playwright } from '@vitest/browser-playwright';
import { defineConfig } from 'vite';
const __dirname = dirname(fileURLToPath(import.meta.url));
export default defineConfig({
build: {
lib: {
formats: ['es'],
entry: resolve(__dirname, 'src/index.js'),
name: 'SyntaxHighlightElement',
fileName: 'syntax-highlight-element',
},
},
test: {
browser: {
provider: playwright(),
enabled: true,
// at least one instance is required
instances: [{ browser: 'chromium' }],
},
},
});