Skip to content

fix(package.json): drop minify#105

Merged
bassosimone merged 1 commit intomainfrom
fix/drop_minify
Feb 2, 2026
Merged

fix(package.json): drop minify#105
bassosimone merged 1 commit intomainfrom
fix/drop_minify

Conversation

@bassosimone
Copy link
Collaborator

@bassosimone bassosimone commented Feb 2, 2026

In m-lab/mlab-speedtest#81, I chased a pretty annoying bug where there was a reference error.

The minified files made it rather complex to understand what was the actual error, and this got me thinking: why do we minify files that are otherwise already tiny by any standard ahead of running a speedtest that is going to transfer lots of data?

So, with this pull request I am proposing that we drop minification and we just use the actual small files, which, in turn, will make debugging and fast iteration more plausible.

I suspect that the culprit is when we upgraded minify (though I did not investigate the matter deeply). What I tested is that, running m-lab/mlab-speedtest locally, the minified files using 0.1.3 fail with cannot access 'g' before initialization while replacing the minified files with the actual file works as intended. At this point, I decided chasing the bug was unimportant and the right thing to do was instead to drop the unnecessary minification complexity.

See m-lab/mlab-speedtest#81 (comment)

Also, run npm install to update the package-lock.json.


This change is Reviewable

In m-lab/mlab-speedtest#81, I chased a pretty
annoying bug where there was a reference error.

Also, run `npm install` to update the `package-lock.json`.

The minified files made it rather complex to understand what was the
actual error, and this got me thinking: _why_ do we minify files
that are otherwise already tiny by _any_ standard ahead of running
a speedtest that is going to transfer _lots_ of data?

So, with this pull request I am proposing that we drop minification
and we just use the actual small files, which, in turn, will make
debugging and fast iteration more plausible.

I suspect that the culprit is when we upgraded minify (though I did
not investigate the matter deeply). What I tested is that, running
`m-lab/mlab-speedtest` locally, the minified files using `0.1.3` fail
with `cannot access 'g' before initialization` while replacing the
minified files with the actual file works as intended. At this point,
I decided chasing the bug was unimportant and the right thing to do
was instead to drop the unnecessary minification complexity.

See m-lab/mlab-speedtest#81 (comment)
@bassosimone bassosimone merged commit ebeb676 into main Feb 2, 2026
4 checks passed
@bassosimone bassosimone deleted the fix/drop_minify branch February 2, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants