Require PathUtils instead of using the global one#12203
Require PathUtils instead of using the global one#12203marcelgerber merged 1 commit intoadobe:masterfrom
Conversation
| // interim. | ||
| var PathUtils = require("thirdparty/path-utils/path-utils"); | ||
|
|
||
| Object.defineProperty(window, "PathUtils", { |
There was a problem hiding this comment.
I like this. Thank you!
|
These changes look good. When we add breaking changes, we tend to notify extension authors. @marcelgerber, do you think you can help here please? |
|
There are quite a few extensions that still use the global object:
But, as I see this, this is not a breaking change, as the global object is still accessible, it just outputs an deprecation warning when used. (Am I right?) |
a866e9b to
c765485
Compare
|
Yes, this PR come with a deprecation warning, it shouldn't break extensions. |
|
Same as the Mustache one, this one looks fine. Just that one thing that you could remove the Gruntfile line goes for this, too. |
c765485 to
7c544ed
Compare
|
@marcelgerber done. |
|
Ah, your Mustache changes don't go well together with this one. |
7c544ed to
7dcc5bd
Compare
|
Fixed (I hope). |
|
Looks good now. Thank you! |
Actually I decided to try again: similarly to #11734 but this time using the submodule.