Add rollup-plugin-analyzer (#8690)

This commit is contained in:
Jukka Kurkela 2021-03-21 23:07:09 +02:00 committed by GitHub
parent d79b5a3d60
commit 1460477989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

6
package-lock.json generated
View File

@ -3565,6 +3565,12 @@
"fsevents": "~2.3.1"
}
},
"rollup-plugin-analyzer": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/rollup-plugin-analyzer/-/rollup-plugin-analyzer-4.0.0.tgz",
"integrity": "sha512-LL9GEt3bkXp6Wa19SNR5MWcvHNMvuTFYg+eYBZN2OIFhSWN+pEJUQXEKu5BsOeABob3x9PDaLKW7w5iOJnsESQ==",
"dev": true
},
"rollup-plugin-cleanup": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/rollup-plugin-cleanup/-/rollup-plugin-cleanup-3.2.1.tgz",

View File

@ -82,6 +82,7 @@
"moment": "^2.29.1",
"pixelmatch": "^5.2.1",
"rollup": "^2.41.4",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-dts": "^3.0.1",
"rollup-plugin-istanbul": "^3.0.0",

View File

@ -1,3 +1,4 @@
const analyze = require('rollup-plugin-analyzer');
const cleanup = require('rollup-plugin-cleanup');
const dts = require('rollup-plugin-dts').default;
const json = require('@rollup/plugin-json');
@ -34,6 +35,7 @@ module.exports = [
cleanup({
sourcemap: true
}),
analyze({summaryOnly: true})
],
output: {
name: 'Chart',