-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Remove most build-time require
-calls from the src/display/
-folder
#16698
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
Remove most build-time require
-calls from the src/display/
-folder
#16698
Conversation
5205bad
to
39b6618
Compare
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/eeb0e2a81af8612/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/eeb0e2a81af8612/output.txt Total script time: 1.33 mins Published |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/adc9fd9d9b6af13/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/fb6a9af6cb633d6/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/adc9fd9d9b6af13/output.txt Total script time: 25.53 mins
Image differences available at: http://54.241.84.105:8877/adc9fd9d9b6af13/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/fb6a9af6cb633d6/output.txt Total script time: 36.71 mins
Image differences available at: http://54.193.163.58:8877/fb6a9af6cb633d6/reftest-analyzer.html#web=eq.log |
I don't know how to fix the
|
By leveraging import maps we can get rid of *most* of the remaining `require`-calls in the `src/display/`-folder, since we should strive to use modern `import`-statements wherever possible. The only remaining cases are Node.js-specific dependencies, since those seem very difficult to convert unless we start producing a bundle *specifically* for Node.js environments.
39b6618
to
d022912
Compare
Maybe we should remove both... but maybe it's a bit too much. |
This is necessary to unblock the previous patch, which removes more build-time `require`-calls from the `src/display/` folder.
To avoid blocking this patch unnecessarily I went for the simpler approach of just disabling the test for now. |
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/1eda25e75dc43f8/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/1eda25e75dc43f8/output.txt Total script time: 1.43 mins Published |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
By leveraging import maps we can get rid of most of the remaining
require
-calls in thesrc/display/
-folder, since we should strive to use modernimport
-statements wherever possible.The only remaining cases are Node.js-specific dependencies, since those seem very difficult to convert unless we start producing a bundle specifically for Node.js environments.