Ensuring Backward Compatibility with SDK 22 and Chromium 60 #4
No reviewers
Labels
No labels
bug
confirmed
bug
critical
bug
new
community
suggestion
community
support
develop
WIP
feature
content
feature
documentation
feature
enhancement
feature
mechanism
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
UmaERA/ere-app!4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This merge request attempts to lower sdkVersion to:
It also polyfills missing JavaScript functions using core-js and compiles ECMAScript6 syntax to ECMAScript5, including:
However, due to the outdated WebView bundled with Android 5.1 (Chromium 39.0.0) which doesn't support features like dynamic import, ESM Bundles are currently unavailable with this solution. Users on Android 5.1 must either update their system WebView, developers must bundle a Chromium instance in the app, or compile JavaScript from ESM to SystemJS (or CommonJS) using Babel, and use
<script nomodule/>for such WebView.Note: The usage of Babel is rather rough, as it waits for the entire Vits bundle before transpiling the bundled code to remove new syntax. This may result in a loss of efficiency and disk space. Unfortunately, I couldn't figure out how to integrate Babel with Vits correctly to call Babel after bundle completion but not before, as the bundle process might introduce new syntax.
感觉里面有一大堆生成的文件,麻烦把最终结果之外的生成文件都删掉
另外babel看看能不能配置到vite里面
assigned to @SLeader
assigned to @yl12053 and unassigned @SLeader
requested review from @SLeader
你说的那堆生成的文件该不会是指的pwa-elements吧
这堆文件确实是ionic的 本来是index.html在CDN上面直接引用的
因为如果要爬CDN的话会导致没网或者CDN掉了都没办法正常运作我就直接整个Esm下下来了
另外配置babel到vite里面...正如Overview的最后一段写的
我是死活配置不进去 无论怎么配babel都是在Bundle之前transpile
然后一bundle新语法又出来了(
P.P.S. 就算不能把
pwa-elements直接存进本地也好,我觉得最好还是写一下第一次从网络获取之后都从本地读的方案pwa-elements如果都是需要的话那就这样吧
babel还是配一下吧,现在这种写法太丑了
added 3 commits
Compare with previous version
added 7 commits
umaera:masterCompare with previous version
added 1 commit
Compare with previous version
added 1 commit
Compare with previous version
btw, the process still cannot be rendered on Chromium 39 with unknown reason (where Console does not have any output)
Debugging is still in its way
Pull request closed