Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29549786: Issue 5535 - Replace our module system with webpack (Closed)

Created:
Sept. 19, 2017, 2:23 p.m. by kzar
Modified:
Oct. 10, 2017, 6:08 p.m.
CC:
Thomas Greiner, tlucas
Visibility:
Public.

Description

Issue 5535 - Replace our module system with webpack I've got a rough version of the corresponding adblockpluschrome changes working (minus the popup), which might help give some context to this review. https://github.com/adblockplus/adblockpluschrome/compare/master...kzar:5080-modules?expand=1 If you want to try the new version which avoids writing files to the disk, you'll need to use this branch instead: https://github.com/adblockplus/adblockpluschrome/compare/master...kzar:5080-modules-memory?expand=1

Patch Set 1 #

Patch Set 2 : Fixed spelling mistake #

Total comments: 2

Patch Set 3 : Silence webpack output except errors and warnings #

Patch Set 4 : Delete all temporary files at the same time #

Total comments: 9

Patch Set 5 : Addressed Sebastian's feedback #

Patch Set 6 : Hardcode resolve paths #

Patch Set 7 : Improved resolve paths comment #

Total comments: 4

Patch Set 8 : Removed ext_background workaround #

Total comments: 7

Patch Set 9 : Use absolute paths for entry points #

Patch Set 10 : Avoid writing files when producing webpack bundles #

Total comments: 2

Patch Set 11 : Only use special info-loader for adblockpluschrome/lib/info.js #

Patch Set 12 : Expose stats Object #

Total comments: 19

Patch Set 13 : Improve output on error #

Patch Set 14 : Addressed Wladimir's feedback #

Patch Set 15 : Tidy up JSON passed from packagerChrome.py #

Patch Set 16 : Produce all bundles in one Node.js process to speed things up #

Patch Set 17 : Avoid creating multiple webpack compilers #

Patch Set 18 : Fixed tox errors #

Total comments: 8

Patch Set 19 : Addressed Wladimir's feedback, use JSON and standard in + out #

Patch Set 20 : Rebased and tidied up #

Total comments: 7

Patch Set 21 : Addressed final nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2191 lines, -153 lines) Patch
A info.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
A info-loader.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +28 lines, -0 lines 0 comments Download
M package.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -1 line 0 comments Download
M package-lock.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +1956 lines, -57 lines 0 comments Download
M packagerChrome.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +53 lines, -44 lines 0 comments Download
M packagerEdge.py View 1 2 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -2 lines 0 comments Download
D templates/modules.js.tmpl View 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -49 lines 0 comments Download
A webpack_runner.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +148 lines, -0 lines 0 comments Download

Messages

Total messages: 38
kzar
Patch Set 1
Sept. 19, 2017, 2:36 p.m. (2017-09-19 14:36:53 UTC) #1
kzar
Patch Set 2 : Fixed spelling mistake
Sept. 19, 2017, 2:50 p.m. (2017-09-19 14:50:03 UTC) #2
tlucas
Hey Dave! The context you provided helped a lot (got it running in as much ...
Sept. 22, 2017, 10:27 a.m. (2017-09-22 10:27:07 UTC) #3
kzar
Patch Set 3 : Silence webpack output except errors and warnings Patch Set 4 : ...
Sept. 22, 2017, 2:01 p.m. (2017-09-22 14:01:51 UTC) #4
Sebastian Noack
https://codereview.adblockplus.org/29549786/diff/29552694/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29549786/diff/29552694/packagerChrome.py#newcode157 packagerChrome.py:157: './adblockplusui/lib']) Mind filing a follow up issue (and referring ...
Sept. 22, 2017, 7:28 p.m. (2017-09-22 19:28:03 UTC) #5
Sebastian Noack
https://codereview.adblockplus.org/29549786/diff/29552694/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29549786/diff/29552694/packagerChrome.py#newcode157 packagerChrome.py:157: './adblockplusui/lib']) On 2017/09/22 19:28:02, Sebastian Noack wrote: > But ...
Sept. 22, 2017, 10:21 p.m. (2017-09-22 22:21:12 UTC) #6
kzar
Patch Set 5 : Addressed Sebastian's feedback https://codereview.adblockplus.org/29549786/diff/29552694/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29549786/diff/29552694/packagerChrome.py#newcode157 packagerChrome.py:157: './adblockplusui/lib']) On ...
Sept. 23, 2017, 8:26 p.m. (2017-09-23 20:26:36 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29549786/diff/29552694/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29549786/diff/29552694/packagerChrome.py#newcode157 packagerChrome.py:157: './adblockplusui/lib']) On 2017/09/23 20:26:36, kzar wrote: > On 2017/09/22 ...
Sept. 23, 2017, 8:49 p.m. (2017-09-23 20:49:02 UTC) #8
kzar
Patch Set 6 : Hardcode resolve paths https://codereview.adblockplus.org/29549786/diff/29552694/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29549786/diff/29552694/packagerChrome.py#newcode157 packagerChrome.py:157: './adblockplusui/lib']) On ...
Sept. 24, 2017, 9:47 a.m. (2017-09-24 09:47:53 UTC) #9
kzar
Patch Set 7 : Improved resolve paths comment
Sept. 24, 2017, 12:36 p.m. (2017-09-24 12:36:57 UTC) #10
Sebastian Noack
https://codereview.adblockplus.org/29549786/diff/29554571/webpack.config.js File webpack.config.js (right): https://codereview.adblockplus.org/29549786/diff/29554571/webpack.config.js#newcode32 webpack.config.js:32: ext_background: "ext" adblockplusui attempts to require ext_background only for ...
Sept. 24, 2017, 3:03 p.m. (2017-09-24 15:03:38 UTC) #11
kzar
https://codereview.adblockplus.org/29549786/diff/29554571/webpack.config.js File webpack.config.js (right): https://codereview.adblockplus.org/29549786/diff/29554571/webpack.config.js#newcode32 webpack.config.js:32: ext_background: "ext" On 2017/09/24 15:03:38, Sebastian Noack wrote: > ...
Sept. 24, 2017, 4:02 p.m. (2017-09-24 16:02:46 UTC) #12
kzar
(Adding Thomas to Cc since we've been discussing the require("ext_background") in adblockplusui/messageResponder.js.)
Sept. 24, 2017, 4:03 p.m. (2017-09-24 16:03:43 UTC) #13
Sebastian Noack
https://codereview.adblockplus.org/29549786/diff/29554571/webpack.config.js File webpack.config.js (right): https://codereview.adblockplus.org/29549786/diff/29554571/webpack.config.js#newcode32 webpack.config.js:32: ext_background: "ext" On 2017/09/24 16:02:46, kzar wrote: > On ...
Sept. 24, 2017, 8:42 p.m. (2017-09-24 20:42:15 UTC) #14
kzar
Patch Set 8 : Removed ext_background workaround https://codereview.adblockplus.org/29549786/diff/29554571/webpack.config.js File webpack.config.js (right): https://codereview.adblockplus.org/29549786/diff/29554571/webpack.config.js#newcode32 webpack.config.js:32: ext_background: "ext" ...
Sept. 25, 2017, 3:18 p.m. (2017-09-25 15:18:27 UTC) #15
Sebastian Noack
LGTM
Sept. 25, 2017, 5:53 p.m. (2017-09-25 17:53:48 UTC) #16
tlucas
LGTM
Sept. 26, 2017, 10:49 a.m. (2017-09-26 10:49:10 UTC) #17
Wladimir Palant
https://codereview.adblockplus.org/29549786/diff/29555770/package.json File package.json (right): https://codereview.adblockplus.org/29549786/diff/29555770/package.json#newcode11 package.json:11: "webpack": "webpack" It's probably better to transform the webpack.config.js ...
Sept. 26, 2017, 12:06 p.m. (2017-09-26 12:06:14 UTC) #18
kzar
Patch Set 9 : Use absolute paths for entry points Patch Set 10 : Avoid ...
Oct. 2, 2017, 6:48 p.m. (2017-10-02 18:48:33 UTC) #19
kzar
Patch Set 11 : Only use special info-loader for adblockpluschrome/lib/info.js
Oct. 3, 2017, 10:18 a.m. (2017-10-03 10:18:27 UTC) #20
Wladimir Palant
Dave, than you for improving the approach here, this is looking much better already. Some ...
Oct. 4, 2017, 10:38 a.m. (2017-10-04 10:38:08 UTC) #21
kzar
Patch Set 14 : Addressed Wladimir's feedback https://codereview.adblockplus.org/29549786/diff/29563589/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29549786/diff/29563589/packagerChrome.py#newcode160 packagerChrome.py:160: template = ...
Oct. 4, 2017, 1:13 p.m. (2017-10-04 13:13:26 UTC) #22
kzar
Patch Set 15 : Tidy up JSON passed from packagerChrome.py
Oct. 4, 2017, 1:26 p.m. (2017-10-04 13:26:27 UTC) #23
kzar
On 2017/10/02 18:48:33, kzar wrote: > One problem I've found with this approach is it's ...
Oct. 4, 2017, 2:24 p.m. (2017-10-04 14:24:40 UTC) #24
kzar
Patch Set 16 : Produce all bundles in one Node.js process to speed things up ...
Oct. 4, 2017, 4:52 p.m. (2017-10-04 16:52:10 UTC) #25
kzar
Patch Set 17 : Avoid creating multiple webpack compilers
Oct. 4, 2017, 6:42 p.m. (2017-10-04 18:42:28 UTC) #26
tlucas
Hey there! I'm moving myself to CC, since the latest / upcoming changes seem to ...
Oct. 5, 2017, 11:04 a.m. (2017-10-05 11:04:00 UTC) #27
kzar
Patch Set 18 : Fixed tox errors
Oct. 6, 2017, 1:44 p.m. (2017-10-06 13:44:37 UTC) #28
Wladimir Palant
https://codereview.adblockplus.org/29549786/diff/29563589/webpack_runner.js File webpack_runner.js (right): https://codereview.adblockplus.org/29549786/diff/29563589/webpack_runner.js#newcode69 webpack_runner.js:69: include: path.join(EXTENSION_PATH, "lib", "info.js"), On 2017/10/04 13:13:25, kzar wrote: ...
Oct. 9, 2017, 10:54 a.m. (2017-10-09 10:54:56 UTC) #29
kzar
Patch Set 19 : Addressed Wladimir's feedback, use JSON and standard in + out https://codereview.adblockplus.org/29549786/diff/29563589/webpack_runner.js ...
Oct. 9, 2017, 1:52 p.m. (2017-10-09 13:52:17 UTC) #30
kzar
Patch Set 20 : Rebased and tidied up Some of the inter-diffs aren't working correctly, ...
Oct. 10, 2017, 1:20 p.m. (2017-10-10 13:20:23 UTC) #31
kzar
https://codereview.adblockplus.org/29549786/diff/29563589/webpack_runner.js File webpack_runner.js (right): https://codereview.adblockplus.org/29549786/diff/29563589/webpack_runner.js#newcode69 webpack_runner.js:69: include: path.join(EXTENSION_PATH, "lib", "info.js"), On 2017/10/09 13:52:14, kzar wrote: ...
Oct. 10, 2017, 1:51 p.m. (2017-10-10 13:51:05 UTC) #32
Wladimir Palant
LGTM The nit below is informational only, I don't think that it is important enough ...
Oct. 10, 2017, 4:33 p.m. (2017-10-10 16:33:17 UTC) #33
Sebastian Noack
https://codereview.adblockplus.org/29549786/diff/29572706/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29549786/diff/29572706/packagerChrome.py#newcode163 packagerChrome.py:163: for dir in ['', 'adblockpluscore', 'adblockplusui']] The "adblockplus" dependency ...
Oct. 10, 2017, 4:35 p.m. (2017-10-10 16:35:20 UTC) #34
Sebastian Noack
Oct. 10, 2017, 4:35 p.m. (2017-10-10 16:35:23 UTC) #35
kzar
Patch Set 21 : Addressed final nits https://codereview.adblockplus.org/29549786/diff/29563589/webpack_runner.js File webpack_runner.js (right): https://codereview.adblockplus.org/29549786/diff/29563589/webpack_runner.js#newcode69 webpack_runner.js:69: include: path.join(EXTENSION_PATH, ...
Oct. 10, 2017, 5:03 p.m. (2017-10-10 17:03:41 UTC) #36
Sebastian Noack
LGTM https://codereview.adblockplus.org/29549786/diff/29572706/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29549786/diff/29572706/packagerChrome.py#newcode192 packagerChrome.py:192: os.path.join(os.path.dirname(__file__), 'webpack_runner.js')] On 2017/10/10 17:03:39, kzar wrote: > ...
Oct. 10, 2017, 5:23 p.m. (2017-10-10 17:23:34 UTC) #37
Wladimir Palant
Oct. 10, 2017, 6:08 p.m. (2017-10-10 18:08:51 UTC) #38
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld