perf-tooling icon indicating copy to clipboard operation
perf-tooling copied to clipboard

Use browserify with babelify for front-end JavaScript

Open marcobiedermann opened this issue 7 years ago • 1 comments

I suggest switching from concatenating JavaScript files to use a module bundler like Browserfy. This way we could manage our dependencies more easily. In this addition I suggest using some of the new ES2015 syntax features which will improve our code over all.

marcobiedermann avatar Dec 13 '16 18:12 marcobiedermann

Only when you compare the files before and after. ;)

Perf-tooling is neither a complicated thing nor are we shipping with a lot of JS or use heavy dependencies. Introducing browserify usually comes with additional "module" code (haven't used it very often though).

I have no idea - but currently we're shipping 7k JS (not gzipped). I'd like to see the change in size first, if that's okay. :)

stefanjudis avatar Dec 13 '16 18:12 stefanjudis