analyse ui/round bundle

pull/9349/head
Thibault Duplessis 2021-07-04 10:48:12 +02:00
parent 8ad48595c9
commit 5bc5927ff7
3 changed files with 11 additions and 1 deletions

View File

@ -2,6 +2,7 @@ const resolve = require('@rollup/plugin-node-resolve').default;
const commonjs = require('@rollup/plugin-commonjs');
const typescript = require('@rollup/plugin-typescript');
const terser = require('rollup-plugin-terser').terser;
const analyze = require('rollup-plugin-analyzer');
module.exports = targets => {
return args => {
@ -38,6 +39,9 @@ module.exports = targets => {
commonjs({
extensions: ['.js'],
}),
analyze({
summaryOnly: true,
}),
],
};
};

View File

@ -13,7 +13,8 @@
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@build/rollupProject": "2.0.0",
"@types/lichess": "2.0.0"
"@types/lichess": "2.0.0",
"rollup-plugin-analyzer": "^4.0.0"
},
"dependencies": {
"ab": "https://github.com/lichess-org/ab-stub",

View File

@ -4381,6 +4381,11 @@ rimraf@^3.0.2:
dependencies:
glob "^7.1.3"
rollup-plugin-analyzer@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/rollup-plugin-analyzer/-/rollup-plugin-analyzer-4.0.0.tgz#96b757ed64a098b59d72f085319e68cdd86d5798"
integrity sha512-LL9GEt3bkXp6Wa19SNR5MWcvHNMvuTFYg+eYBZN2OIFhSWN+pEJUQXEKu5BsOeABob3x9PDaLKW7w5iOJnsESQ==
rollup-plugin-copy@^3.3.0:
version "3.4.0"
resolved "https://registry.yarnpkg.com/rollup-plugin-copy/-/rollup-plugin-copy-3.4.0.tgz#f1228a3ffb66ffad8606e2f3fb7ff23141ed3286"