rollup-plugin-visualizer
Advanced tools
Comparing version 5.9.0 to 5.9.1
@@ -13,3 +13,4 @@ "use strict"; | ||
let column = 0; | ||
for (let i = 0; i < code.length; i++, column++) { | ||
const codeChars = [...code]; | ||
for (let i = 0; i < codeChars.length; i++, column++) { | ||
const { source } = map.originalPositionFor({ | ||
@@ -22,3 +23,3 @@ line, | ||
modules[id] = modules[id] || { id, renderedLength: 0 }; | ||
modules[id].renderedLength += 1; | ||
modules[id].renderedLength += Buffer.byteLength(codeChars[i]); | ||
} | ||
@@ -33,3 +34,3 @@ if (code[i] === "\n") { | ||
const getSourcemapModules = (id, outputChunk, dir) => { | ||
if (!outputChunk.map) { | ||
if (outputChunk.map == null) { | ||
return Promise.resolve({}); | ||
@@ -36,0 +37,0 @@ } |
{ | ||
"name": "rollup-plugin-visualizer", | ||
"version": "5.9.0", | ||
"version": "5.9.1", | ||
"main": "./dist/plugin/index.js", | ||
@@ -45,6 +45,6 @@ "author": "Denis Bardadym <bardadymchik@gmail.com>", | ||
"@jest/globals": "^29.3.1", | ||
"@rollup/plugin-alias": "^4.0.2", | ||
"@rollup/plugin-commonjs": "^24.0.0", | ||
"@rollup/plugin-alias": "^5.0.0", | ||
"@rollup/plugin-commonjs": "^25.0.1", | ||
"@rollup/plugin-node-resolve": "^15.0.0", | ||
"@rollup/plugin-typescript": "^10.0.1", | ||
"@rollup/plugin-typescript": "^11.1.1", | ||
"@types/bytes": "^3.1.1", | ||
@@ -84,3 +84,3 @@ "@types/d3-array": "^3.0.3", | ||
"ts-jest": "^29.0.3", | ||
"typescript": "~4.9.0" | ||
"typescript": "~5.1.3" | ||
}, | ||
@@ -87,0 +87,0 @@ "engines": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
536930
13999