-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.js
More file actions
44 lines (41 loc) · 1.04 KB
/
vite.config.js
File metadata and controls
44 lines (41 loc) · 1.04 KB
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
34
35
36
37
38
39
40
41
42
43
44
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import webExtension from 'vite-plugin-web-extension'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
import { resolve } from 'path'
export default defineConfig({
plugins: [
react(),
webExtension({
manifest: 'src/manifest.json',
additionalInputs: [
'src/Import/index.html',
'src/Popup/index.html',
'src/SubscribePopup/index.html',
],
webExtConfig: {
target: "firefox-desktop",
devtools: true,
startUrl: "about:debugging#/runtime/this-firefox",
}
}),
nodePolyfills({
// Enable polyfills for specific globals and modules
globals: {
Buffer: true,
global: true,
process: true,
},
// Enable polyfill for specific modules
protocolImports: true,
})
],
resolve: {
alias: {
'@': resolve(__dirname, 'src')
}
},
optimizeDeps: {
include: ['react', 'react-dom', 'redux', 'react-redux', 'feedme']
}
})