-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Use the global RequireJS config for ExtensionLoader. Fixes #1087 #10373
Comments
Comment by ficristo I find a bit weak to rely on the semi-private API and the discussion linked above seems quite old. |
Comment by petetnt
It isn't a very meaningful change as of now: everything will work as they used to. It's a blocker for something similar to #12006 (my |
Comment by ficristo Thank you for the clarification. |
Comment by petetnt Updated this PR against the latest master (non-global PathUtils), prefixed the API and made a note about internal use only. |
Comment by ficristo Do you have tryed it with an installer? |
Comment by petetnt Fixed the indentation issue and added a missing piece from the original fix that had gone missing after rebasing. Haven't tried it with installer, but extensions seem to load and install just fine. |
Comment by ficristo I tryed with a custom build installer on Linux (Ubuntu) and the TODO extension worked. |
Issue by petetnt
Saturday Jan 02, 2016 at 12:25 GMT
Originally opened as adobe/brackets#12041
Brackets has a long running (minor) issue #1087, where the global RequireJS path configuration is not being re-used but instead repeated in
ExtensionLoader.js
.This PR fixes the issue by creating a simple wrapper API around the semi-private (see James Burkes comment here)
requirejs.s.contexts._.config
and later converts them to absolute paths inExtensionLoader.js
.This same method can also be used to retrieve global modules with other modules that aren't run in the same scope as the rest of Brackets, such as WebWorkers and Node instances. For more information see my comment at: adobe/brackets#12006 (comment)
petetnt included the following code: https://github.com/adobe/brackets/pull/12041/commits
The text was updated successfully, but these errors were encountered: