-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
43 lines (40 loc) · 1.2 KB
/
vite.config.ts
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
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vite';
import tsConfigPaths from 'vite-tsconfig-paths';
const __dirname = dirname(fileURLToPath(import.meta.url));
export default defineConfig({
root: resolve(__dirname),
resolve: {
alias: []
},
build: {
copyPublicDir: false,
cssCodeSplit: false,
cssMinify: false,
emptyOutDir: true,
minify: false,
outDir: 'dist',
sourcemap: true,
target: 'esnext',
rollupOptions: {
external: [/^@nordcom\/commerce-/],
treeshake: 'recommended',
output: {
chunkFileNames: 'chunks/[name].[hash].js',
entryFileNames: '[name].js',
esModule: true,
exports: 'named',
format: 'esm',
hoistTransitiveImports: true,
indent: false,
interop: 'esModule',
minifyInternalExports: true,
noConflict: true,
sourcemapExcludeSources: false,
strict: true
}
}
},
plugins: [tsConfigPaths()]
});