-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Move libraries used for interactions to webpack #10388
Move libraries used for interactions to webpack #10388
Conversation
Hi, @nishantwrp, this pull request does not have a "CHANGELOG: ..." label as mentioned in the PR checkbox list. Please add this label. PRs without this label will not be merged. If you are unsure of which label to add, please ask the reviewers for guidance. Thanks! |
Assigning @vojtechjelinek for the first-pass review of this pull request. Thanks! |
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.
Thanks! A two questions.
import 'third-party-imports/guppy.import'; | ||
import 'third-party-imports/midi-js.import'; | ||
import 'third-party-imports/ng-audio.import'; | ||
import 'third-party-imports/ng-joy-ride.import'; | ||
import 'third-party-imports/skulpt.import'; |
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.
Could any of these newly added libs be only imported at places where they are actually needed? Like in some directive where they are used.
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.
Actually the issue with that is these imports look like this
window.Guppy = ...
and requiring this multiple times loads the library script many times. Plus anyways they need to be loaded in exploration editor and player page. So, added these here to load the script only once.
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.
Ok, that makes sense.
@@ -24,6 +24,5 @@ | |||
</oppia-root> | |||
@load('pages/footer_js_libs.html') | |||
<script src="/third_party/static/MathJax-2.7.5/MathJax.js?config=default"></script> | |||
@loadExtensions('interactions/codemirror.html') |
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.
Why is it no longer needed here?
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.
its added in the respective directive.
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.
Ok.
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!
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 from code-owner's perspective, Thanks @nishantwrp!
Hi @nishantwrp. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
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 for the core/templates/pages/contributor-dashboard-page/question-opportunities/question-opportunities.directive.ts
file changes!
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.
Codeowner files LGTM, thanks @nishantwrp!
Hi @nishantwrp. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
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
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 for codeowner file.
@U8NWXD @kevinlee12 There are two Travis CI checks in this pr. Any ideas on how to fix this? |
@nishantwrp Travis does that sometimes, as long as the PR isn't blocked for merge (assuming all reviewers ok), then it's fine. |
Overview
Essential Checklist
PR Pointers