Last active
June 15, 2023 00:30
-
-
Save jasonaden/f38a7a38cea4fb8ff6b5ea71d9fcfcb7 to your computer and use it in GitHub Desktop.
Stats file from rollup-plugin-visualizer for debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 2, | |
"tree": { | |
"name": "root", | |
"children": [ | |
{ | |
"name": "assets/index-625bb411.js", | |
"children": [ | |
{ | |
"name": "src", | |
"children": [ | |
{ | |
"uid": "d9af-1", | |
"name": "style.css" | |
}, | |
{ | |
"uid": "d9af-3", | |
"name": "counter.ts" | |
}, | |
{ | |
"uid": "d9af-5", | |
"name": "main.ts" | |
} | |
] | |
}, | |
{ | |
"uid": "d9af-7", | |
"name": "index.html" | |
} | |
] | |
} | |
], | |
"isRoot": true | |
}, | |
"nodeParts": { | |
"d9af-1": { | |
"renderedLength": 17, | |
"gzipLength": 37, | |
"brotliLength": 0, | |
"metaUid": "d9af-0" | |
}, | |
"d9af-3": { | |
"renderedLength": 245, | |
"gzipLength": 170, | |
"brotliLength": 0, | |
"metaUid": "d9af-2" | |
}, | |
"d9af-5": { | |
"renderedLength": 444, | |
"gzipLength": 269, | |
"brotliLength": 0, | |
"metaUid": "d9af-4" | |
}, | |
"d9af-7": { | |
"renderedLength": 0, | |
"gzipLength": 0, | |
"brotliLength": 0, | |
"metaUid": "d9af-6" | |
} | |
}, | |
"nodeMetas": { | |
"d9af-0": { | |
"id": "/src/style.css", | |
"moduleParts": { | |
"assets/index-625bb411.js": "d9af-1" | |
}, | |
"imported": [], | |
"importedBy": [ | |
{ | |
"uid": "d9af-4" | |
} | |
] | |
}, | |
"d9af-2": { | |
"id": "/src/counter.ts", | |
"moduleParts": { | |
"assets/index-625bb411.js": "d9af-3" | |
}, | |
"imported": [], | |
"importedBy": [ | |
{ | |
"uid": "d9af-4" | |
} | |
] | |
}, | |
"d9af-4": { | |
"id": "/src/main.ts", | |
"moduleParts": { | |
"assets/index-625bb411.js": "d9af-5" | |
}, | |
"imported": [ | |
{ | |
"uid": "d9af-0" | |
}, | |
{ | |
"uid": "d9af-2" | |
} | |
], | |
"importedBy": [ | |
{ | |
"uid": "d9af-6" | |
} | |
] | |
}, | |
"d9af-6": { | |
"id": "/index.html", | |
"moduleParts": { | |
"assets/index-625bb411.js": "d9af-7" | |
}, | |
"imported": [ | |
{ | |
"uid": "d9af-4" | |
} | |
], | |
"importedBy": [], | |
"isEntry": true | |
} | |
}, | |
"env": { | |
"rollup": "3.25.1" | |
}, | |
"options": { | |
"gzip": true, | |
"brotli": false, | |
"sourcemap": false | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineConfig } from 'vite' | |
import { visualizer } from 'rollup-plugin-visualizer'; | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
build: { | |
outDir: `dist/local`, | |
modulePreload: false | |
}, | |
plugins: [ | |
visualizer({ | |
template: "raw-data", | |
gzipSize: true, | |
filename: `stats.json`, | |
}) | |
] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment