Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[api-minor] Remove SystemJS usage, in development mode, from the worker #12563

Merged
merged 7 commits into from
May 3, 2023

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Nov 2, 2020

Now that https://bugzilla.mozilla.org/show_bug.cgi?id=1247687 has landed in Firefox, we're able to use worker-modules during development :-)

This removes the final piece of SystemJS usage from the PDF.js library, thus allowing a fair bit of clean-up, and we now use only native import/export statements everywhere in development mode.

@Snuffleupagus Snuffleupagus force-pushed the rm-SystemJS-worker branch 3 times, most recently from d4edbdc to e9b7843 Compare January 24, 2021 12:04
@Snuffleupagus Snuffleupagus force-pushed the rm-SystemJS-worker branch 2 times, most recently from ec02d34 to e9b8fbd Compare February 27, 2021 13:06
@Snuffleupagus Snuffleupagus force-pushed the rm-SystemJS-worker branch 3 times, most recently from 744a84c to 18e997d Compare March 13, 2021 22:10
@Snuffleupagus Snuffleupagus force-pushed the rm-SystemJS-worker branch 2 times, most recently from dbdf30e to 1d61a58 Compare March 26, 2021 23:16
@Snuffleupagus Snuffleupagus force-pushed the rm-SystemJS-worker branch 2 times, most recently from 70a9b32 to 1ebc9a7 Compare April 5, 2021 14:49
@Snuffleupagus Snuffleupagus force-pushed the rm-SystemJS-worker branch 2 times, most recently from 5d0cc0c to 02c4569 Compare April 9, 2021 21:12
@Snuffleupagus Snuffleupagus force-pushed the rm-SystemJS-worker branch 3 times, most recently from 3e6abdf to 18bf0e1 Compare May 2, 2021 11:48
@Snuffleupagus Snuffleupagus force-pushed the rm-SystemJS-worker branch 7 times, most recently from ee59c4d to 35deb8e Compare April 22, 2023 14:03
@Snuffleupagus Snuffleupagus force-pushed the rm-SystemJS-worker branch 2 times, most recently from 4292d63 to 5cb7023 Compare April 25, 2023 10:13
Now that https://bugzilla.mozilla.org/show_bug.cgi?id=1247687 has landed in Firefox, we're able to use worker-modules during development :-)

This removes the final piece of SystemJS usage from the PDF.js library, thus allowing a fair bit of clean-up, and we now use *only* native `import`/`export` statements everywhere in development mode.
… to re-format `src/core/{glyphlist, unicode}.js`"

This reverts commit 56fa6d4 now that SystemJS is gone.
…apability` class

This is not only slightly more compact, but it also simplifies the handling of the `settled` getter.
…read

Now that we no longer depend on the old Babel version in SystemJS we can remove the `static get ...` work-arounds used to define constants, which leads to slightly more compact code.
@Snuffleupagus
Copy link
Collaborator Author

https://bugzilla.mozilla.org/show_bug.cgi?id=1812591 has now landed in Firefox Nightly, see also https://groups.google.com/a/mozilla.org/g/dev-platform/c/J5zqdaNSpAM, which should've been the final blocker for this PR :-)

Please note: This patch only introduces worker modules for the development viewer, i.e. gulp server, which help improve the loading performance of http://localhost:8888/web/viewer.html

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good overall.
It's good to see this patch becoming a reality.
Thank you.

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/92fc4d70c7aa33f/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/aa34e9d32a22860/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/aa34e9d32a22860/output.txt

Total script time: 27.30 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 10

Image differences available at: http://54.241.84.105:8877/aa34e9d32a22860/reftest-analyzer.html#web=eq.log

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/92fc4d70c7aa33f/output.txt

Total script time: 34.05 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 25

Image differences available at: http://54.193.163.58:8877/92fc4d70c7aa33f/reftest-analyzer.html#web=eq.log

@Snuffleupagus Snuffleupagus merged commit f31b320 into mozilla:master May 3, 2023
@Snuffleupagus Snuffleupagus deleted the rm-SystemJS-worker branch May 3, 2023 21:58
@timvandermeij
Copy link
Contributor

Nice work, and really good to get rid of SystemJS now!

@timvandermeij timvandermeij removed their request for review May 6, 2023 10:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants