Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

refactor: migrate from browserify to webpack#4319

Closed
vhashimotoo wants to merge 8 commits intomasterfrom
vh/webpack
Closed

refactor: migrate from browserify to webpack#4319
vhashimotoo wants to merge 8 commits intomasterfrom
vh/webpack

Conversation

@vhashimotoo
Copy link
Contributor

@vhashimotoo vhashimotoo commented Aug 4, 2020

Well, yes this is migration to webpack, why not.

Why

This contains a big history behind this what's starts from this comment: #2091 (comment), and that history continues to today day. Originally I'm unable to normally read the changelogs for uglify-js because them is empty, absolutely, check #4310 for example.

Next thing is a precompiling script that looks very strange for modern folks. When you open this file and don't known what's you should change to make this thing work, what's stops on integrating new modern things.

That and more other reasons require me to make do this.

Differences

Mainly nothing changed, not for development, not for production, we still can use ES2020 features as before.

I'm not integrating hot reload, since this is not a frontend framework. If we need hot reload I'm an add she.

Measurements

Build time:

webpack browserify
~8s ~17s

Bundle size

webpack browserify
2.53MB 586KB

I'm really not sure why the bundle size is so huge if you know webpack more than me, this is a bundle analyzer for the last build:

127 0 0 1_8888_

This is something that I will be monitoring in future PRs.

Future

This PR doesn't contain the code for building CSS file, this is being done in the next PR and on that this migration can be officially finished.

@electron-bot electron-bot temporarily deployed to electron-website-pr-4319 August 4, 2020 15:30 Inactive
@electron-bot electron-bot temporarily deployed to electron-website-pr-4319 August 4, 2020 16:25 Inactive
@vhashimotoo vhashimotoo marked this pull request as ready for review August 4, 2020 17:59
@vhashimotoo vhashimotoo requested a review from a team August 4, 2020 17:59
@electron-bot electron-bot temporarily deployed to electron-website-pr-4319 August 5, 2020 02:57 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants