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:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user