Open pdehaan opened 4 years ago
For anybody else mildly curious why the published @mozilla/nimbus-shared
npm module is 175 KB, I slapped this garbage script together:
const fs = require("fs");
const glob = require("fast-glob");
glob("./node_modules/@mozilla/nimbus-shared/**")
.then((files) => {
for (const file of files.sort()) {
const filename = file.replace("./node_modules/@mozilla/nimbus-shared/", "");
const sizeKb = fs.statSync(file).size / 1024;
console.log(`${filename} | ${Number(sizeKb).toFixed(1)} KB | ${sizeKb > 50 ? "⚠️".repeat(sizeKb / 50) : ""}`);
}
});
Most of the files are pretty small, but we have 4 files over 50 KB and 3 of those are over 100 KB. Not that it is wrong or a bug, just FYI.
Nothing major, but interesting... Note the
data.Audiences
vsdata.features
(and I guess theExperimentDesignPresets
vsexperiment-recipe-samples
casing differences):