2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-06-12 19:49:30 +00:00

[UI] Optimize bundle (#11896)

* lazy load global window modules

- Required for plugins
- Can be separated from the "main.tsx" code

Co-authored-by: Copilot <copilot@github.com>

* Defer modal loading

Co-authored-by: Copilot <copilot@github.com>

* Rollup visualiser tool

* Remove debug msg

* Rearrange to reduce deltas

* Refactor CodeEditor and PdfPreview

* Split NotesPanel

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Oliver
2026-05-09 12:44:05 +10:00
committed by GitHub
parent 47f9dd9470
commit 583c7ad5f2
11 changed files with 275 additions and 31 deletions
+2
View File
@@ -3,6 +3,7 @@ import { codecovVitePlugin } from '@codecov/vite-plugin';
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
import react from '@vitejs/plugin-react';
import license from 'rollup-plugin-license';
import { visualizer } from 'rollup-plugin-visualizer';
import { defineConfig } from 'vite';
import istanbul from 'vite-plugin-istanbul';
@@ -26,6 +27,7 @@ export default defineConfig(({ command, mode }) => {
return {
plugins: [
visualizer(),
react({
babel: {
plugins: ['macros']