dx: vitePluginImport was offsetting code lines while debugging
Massimo Melina committed
Jul 15, 2023 at 13:37 UTC
9f8834943362d5460047931efd0684dd89d58f70
2 files changed
+14
-11
.gitignore
+1
-1
@@ -8,7 +8,7 @@ mui-grid-form/lib
8
counters.yaml
9
*.log*
10
self.*
11
-config.yaml
11
+config.yaml*
12
custom.html
13
accounts.yaml
14
.DS_Store
\ No newline at end of file
admin/vite.config.ts
+13
-10
@@ -7,17 +7,20 @@ export default defineConfig({
7
outDir: '../dist/admin',
8
emptyOutDir: true,
9
target: "es2015",
10
+ rollupOptions: {
11
+ plugins: [
12
+ vitePluginImport([
13
+ { // speed up build process (~2s on my M1) by bringing "modules transformed" from 11k+ down to 1.7k+
14
+ libraryName: '@mui/icons-material',
15
+ libraryDirectory: '',
16
+ libraryChangeCase: "camelCase",
17
+ ignoreStyles: [],
18
+ },
19
+ ])
20
+ ],
21
+
22
+ }
23
},
11
- plugins: [
12
- vitePluginImport([
13
- { // this is (currently) speeding up build process, by bringing "modules transformed" from 11k+ down to 1.5k+
14
- libraryName: '@mui/icons-material',
15
- libraryDirectory: '',
16
- libraryChangeCase: "camelCase",
17
- ignoreStyles: [],
18
- },
19
- ])
20
- ],
24
server: {
25
port: 3006,
26
host: '127.0.0.1',