forked from enzonotario/dolarapi.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
42 lines (38 loc) · 778 Bytes
/
Copy pathvite.config.js
File metadata and controls
42 lines (38 loc) · 778 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
34
35
36
37
38
39
40
41
42
import { URL, fileURLToPath } from 'node:url'
import { defineConfig } from 'vite'
import EsJS from '@es-js/vite-plugin-esjs'
export default defineConfig({
plugins: [
// https://github.com/es-js/esjs
EsJS(),
],
test: {},
resolve: {
alias: {
'@': fileURLToPath(new URL('./cron', import.meta.url)),
},
extensions: [
'.js',
'.json',
'.jsx',
'.mjs',
'.ts',
'.tsx',
'.esjs',
],
},
build: {
outDir: './dist/cron',
emptyOutDir: false,
rollupOptions: {
input: './cron/index.js',
output: {
format: 'esm',
entryFileNames: '[name].js',
chunkFileNames: '[name].js',
assetFileNames: '[name].[ext]',
exports: 'auto',
},
},
},
})