apache / incubator-weex

Apache Weex (Incubating)
https://weex.apache.org
Apache License 2.0
13.75k stars 1.82k forks source link

[Android] weex page will unable to render in production environment when import `he` and OS is Android 5.1 #3292

Open ReedSun opened 3 years ago

ReedSun commented 3 years ago

Describe the bug

When the device's system is Android 5.1, if he is imported, even if it is not used, the Weex page will be stuck in the loading state and cannot be rendered in only production environment(uglify and mangle). In the development environment, everything is normal.

To Reproduce

First, install he.

npm i he

Then, import it.

<template>
...
</template>
<script>
import he from 'he'
</script>

Finally, run npm run build, and the bug will appear.

Environment

Expected behavior

render normal

Screenshots

91648c77d250fa772052b71644096a7

Additional context

Maybe this problem has something to do with #2563 #2616 #2519 #2213