-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade dependencies #278
Conversation
New dependencies added: awesome-typescript-loaderAuthor: Stanislav Panferov Description: Awesome TS loader for webpack Homepage: https://github.com/s-panferov/awesome-typescript-loader
|
Created | over 3 years ago |
Last Updated | about 2 months ago |
License | MIT |
Maintainers | 1 |
Releases | 60 |
Direct Dependencies | mkdirp , nanoid , open , pupa , source-map and yargs |
README
Rollup Plugin Visualizer
Visualize and analyze your Rollup bundle to see which modules are taking up space.
Screenshots
Installation
npm install --save-dev rollup-plugin-visualizer
or via yarn:
yarn add --dev rollup-plugin-visualizer
Usage
import visualizer from 'rollup-plugin-visualizer';
//...
plugins: [
visualizer()
],
//...
Options
filename
(string, default stats.html
) - name of the file with diagram to generate
title
(string, default Rollup Visualizer
) - title tag value
sourcemap
(boolean, default false
) - Use sourcemaps to calculate sizes (e.g. after UglifyJs or Terser)
open
(boolean, default false
) - Open generated file in default user agent
template
(string, default treemap
) - Which digram type to use: sunburst
, treemap
, circlepacking
, network
(very early stage, feedback welcomed)
deprecatedextraStylePath
(string, default undefined
) - Link your own css file to override or enhance the current templates
chartParameters.width
(number, default undefined
) - Set svg viewBox width to this number
chartParameters.height
(number, default undefined
) - Set svg viewBox height to this number
json
(boolean, default false
) - Product portable json file that can be used with plugin CLI util to generate graph from several json files. Every UI property ignored in this case.
CLI
This plugin provides cli util rollup-plugin-visualizer
. Add --help
to check actual options. It can be used like:
rollup-plugin-visualizer [OPTIONS] stat1.json stat2.json ../stat3.json
This can be usefull in case you have different config files in the same project and you want to display all of them in the same chart.
Build plugin
For development if you need to build plugin, just exec:
yarn run build
Disclaimer about generated files
Generated html files do not and never will contain your source code (contents of files). They can contain only js/html/css code required to build chart (plugin code) and statistical information about your source code.
This statistical information can contain:
- size of files included in bundle
- size of files included in source map
- file's path
- files hierarchy (fs tree for your files)
Upgrades
See CHANGELOG.md.
Acknowledgements
Initially this plugin was based on webpack-visualizer
, but in the end used only styles and layout. Thanks to the tons of people around internet for great examples of d3 usage. Also i would like to thank you Mike Bostock for awesome D3, and tons of examples.
de0b728
to
3ecc85e
Compare
Codecov Report
@@ Coverage Diff @@
## master #278 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 72 72
Lines 1553 1553
Branches 293 293
=====================================
Hits 1553 1553 Continue to review full report at Codecov.
|
3ecc85e
to
a581c23
Compare
2606fb0
to
fd93bf9
Compare
fd93bf9
to
8ca90fb
Compare
* New Storybook configuration
8ca90fb
to
5137320
Compare
Also made committing stats files part of release so the files are always committed when a new version is published. Also upgraded dependencies.
7aedaa7
to
9a8228c
Compare
Storybook
Added new Storybook configuration; see Declarative Storybook Configuration for more information.
Final Form
Depends on 42BV/jarb-final-form#6 to be merged and released. This contains updated TypeScript definitions that are updated to the latest
final-form
typings. This is the reason the pipeline fails.v1.1.0
.Husky
Removed
git add
from Husky as it does this by default.This update increases the bundle size by a significant size:
dist/index.js
dist/index.es.js