This plugin depends on source-map-explorer and rollup
.
To install source-map-explorer
, run:
npm install -g source-map-explorer
npm install --save-dev rollup-plugin-source-map-explorer
# or
yarn add -D rollup-plugin-source-map-explorer
import visualizeSource from 'rollup-plugin-source-map-explorer';
//...
plugins: [
//...
visualizeSource();
]
//...
Reference source-map-explorer docs to learn more about these options.
Type: string
Default: source-stats.html
Name of the generated visualisation file.
Type: string
Default: html
Format of the file. Possible types are all those that source-map-explorer
supports:
html
| json
| tsv
Type: boolean
Default: false
Calculate gzip size.
Type: boolean
Default: false
To sort filenames or not.
Type: boolean
Default: false
Type: boolean
Default: false
Type: boolean
Default: false
If the invalid mapping column/line checks should be disabled.