-
Notifications
You must be signed in to change notification settings - Fork 102
Add an ES5/IE compatible version of wrapper to distribution #32
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
Add an ES5/IE compatible version of wrapper to distribution #32
Conversation
+1 to have a solution for IE11 |
1 similar comment
+1 to have a solution for IE11 |
If this means this wrapper can support IE 10, it would mean a lot. |
@wbern see #31 (comment) |
@ChristianMurphy we are using that wrapper today for the IE legacy support it offers, but the support for templates and slots is really just not there (likely because no shadow dom) and the vue devtools extension fails to show components below the first level on pages that use it. That's why I want to switch to this implementation. |
@wbern in theory this should work back to IE9, I've only done testing with IE11. |
@ChristianMurphy in our case we need to support IE 10. I wonder if that could be targeted for this repo? I did some attempts with this wrapper and it didn't really work when I tried adding the wc polyfills. But I'll try again someday. |
@wbern it could, and in theory it already does. |
How would this work when making web components via the vue cli with the --target as wc? Is this based off the target browserlist whether to use es6 vs es5 version of the web component wrapper? |
My thought is to support something like modern mode for target web component. |
@ChristianMurphy, the modern mode for target web component is ignored.
Either way, when do you think this will be integrated to to the main branch? Thank you! |
I'm aware, that's why I'm suggesting adding it 🙂
If/when this will be merged is a question @yyx990803 would be able to answer. |
@ChristianMurphy Okay, thank you. perhaps we can add a transpilation step to convert the output file to es5 version with webpack for now. |
Guys, this PR is not getting attention from @yyx990803, either:
You can try to get him on e.g. twitter (https://twitter.com/youyuxi) and politely ask for an attention. |
As stated in README:
So it's correct that I do not want to support non-ever green browsers (and all associated problems that come with it). You are welcome to fork it as a separate distribution though. |
Fair enough, thanks for the review! @wbern There is a work around in #31 (comment). |
@ChristianMurphy I'm working for a company and it was somewhat disappointing to see this rejection. Since I don't see any larger issues a minor PR like this being able to take future changes from upstream, it's possible there might be a fork of this repo. |
we have a fork in use right now, but we're also strapped on resources and not able to really maintain our public repos during this timeframe. So feel free to take a look but be warned we will probably not be able to provide assistance , help or anything like that. https://github.com/Updater/vue-web-component-wrapper |
@ChristianMurphy Is there any reason why docs still say mention that Web Component mode does not support IE11 and below? |
Yes, because this wasn't merged, and IE11 isn't supported out of the box. |
@VelenAranha @ChristianMurphy I think my fork is worth checking out, it has at least 1 critical fix for IE11. #79 |
resolves #31