Closed Hanks10100 closed 6 years ago
My suggestion is old version js framework could work with old version weex-loader.
define
and require
is recommended to be preserved keywords for other 3rd-party packaging tools. That's why we give up them in new version.
Does it possible to support both define
and __weex_define__
at the same time ? If the loader can't achieve it, at least should provide an configuration or specific version to do this.
It's not recommended. What we should do is encourage people use latest version, not do more things for the past.
Currently,
weex-loder
will generate__weex_define__
instead of the originaldefine
. But the old version of weex js framework doesn't support this variable.__weex_define__
is supported since v0.13.8.__weex_bootstrap__
is supported since v0.13.8.__weex_require__
is supported since v0.15.3.The js bundle generated by
weex-loader
couldn't run on js framework below v0.13.8. This problem should be fixed to improve the compatibility.