-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] Treat Web Components and Custom Elements as ES Modules #32171
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
Conversation
8502f95 to
9a0d464
Compare
|
I have tested this item ✅ successfully on 9a0d464 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32171. |
Where? |
It happens in the build steps, check |
|
So we probably need to add the old files to the list of files to be removed for those people updating |
|
CodeMirror broken in d4d9619 No JS errors. Just seams like it's not being bound to the element at all. |
Updating from J3 is not affected, between betas I have no clue how this is handled. |
|
between betas is the same as 3.x to 3.x+1 |
administrator/components/com_associations/tmpl/association/edit.php
Outdated
Show resolved
Hide resolved
ok will add all the affected files there |
|
Well, it does not need to rename everything, that not productive, and probably will lead to bugs. |
|
I have tested this item ✅ successfully on 5babcd4 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32171. |
|
Well, then, with all this renaming it not acceptable at beta stage, to me. Sorry. All was need is just disable transpiller and drop WC loader in core.js. |
That's not what this PR is doing. It just aligns the idiomatic (different and odd) web components names to the rest of the scripts and also treats them as modules (totally fine, there's just a class in there). Why is it not acceptable? PS I stand corrected if the target is ES6 to be the |
Wouldn't that be a second step to accomplish after this PR? I believe we discussed best course of action is a step by step approach instead of some monolithic PR. @dgrammatiko states as much here. |
|
@chnnst would be more helpful if you tested the PR and log it here: https://issues.joomla.org |
a626abb to
7c5e485
Compare
|
Thanks! that looks much better.
There 2 reason:
This for future updates. The same for other scripts. If we going to ship es6 files as default then they should be called without suffix, and all legacy files should have a suffix. So in future we just drop "legacy" files without much trouble. |
Agreed. This way we will not repeat the odd One question is it possible to have a dependency loaded before core.js? If so how? |
Not for regular script. For inline it possible: $wa->addInlineScript('alert("aaa!")', ['position' => 'before'], [], ['core']);This kind of reverse dependency I guess. A couple people already asked about same, maybe need to think something in future for regulars script. |
Yeah, some array reordering function could be helpful. Anyways it turns out I don't need it here. @wilsonge this should be almost the same behaviour as before:
|
|
@Fedik the dependencies are not rendering in the expected order (or at least that wasn't my expectation), check the image above |
|
It is correct order from how it configured. btw, if you will use |
|
Aha, I will fix the definitions later on today |
|
It's completely unnecessary to add polyfills for IE support. IE is not supported as is. IE is also being completely discontinued (EOL) in August by Microsoft. This is a lot of extra work for something we can't even test (J4 frontend and backend do not work in IE) for a literal dead browser. |
|
@wilsonge I think you a bit to fast here, @dgrammatiko still need to fix dependency issue 😉 |




Pull Request for Issue # .
Summary of Changes
Some filename changesTesting Instructions
Test various views in the backend and confirm nothing is broken
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Documentation Changes Required