[英]Windows.Universal Javascript PWA app uses Edge legacy instead of Edge Chromium
Wondering what causes my PWA app to use edge 18 engine as runtime when the Edge Chromium is present on my windows machine.想知道当我的 windows 机器上存在 Edge Chromium 时,是什么导致我的 PWA 应用程序使用 edge 18 引擎作为运行时。
Because of this I have to downgrade my Javascript target to es2016 (es6) as I compile my typescript.因此,在编译 typescript 时,我必须将 Javascript 目标降级为 es2016 (es6)。
I am using Aplication.Manifest and generating a package msix.我正在使用 Aplication.Manifest 并生成 package msix。
Could my Applicication.Manifest playing any part?我的 Applicication.Manifest 可以起到任何作用吗? Or is there any way it can be changed so that the runtime uses the current version of Edge Chromium engine if at all it is possible.
或者有什么方法可以改变它,以便运行时使用当前版本的 Edge Chromium 引擎(如果可能的话)。
Wondering you build your javascript based native apps and target a better runtime in 2022?想知道您构建基于 javascript 的本机应用程序并在 2022 年瞄准更好的运行时吗?
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17134.0" MaxVersionTested="10.0.18363.1139"/>
</Dependencies>
Update: To clarify I am using appx package manifest and creating an app with a link to a PWA site.更新:为了澄清我正在使用 appx package 清单并创建一个带有 PWA 网站链接的应用程序。
You can take a look at this sample code from Microsoft official UWP sample using WebView2.您可以使用 WebView2 查看 Microsoft 官方 UWP 示例中的示例代码。 See if this can help you.
看看这是否可以帮助你。 I would suggest following the official tutorial to make sure everything works fine.
我建议遵循官方教程以确保一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.