third_party_weex-loader/deps/weex-scripter
bojiang a1301d885e jiangbo91@huawei.com
Signed-off-by: bojiang <jiangbo91@huawei.com>
Change-Id: Ibd686b8e9ce6b3ef1dc58c0ddeac85debe4f1090
2023-05-25 19:26:20 +08:00
..
lib jiangbo91@huawei.com 2023-05-25 19:26:20 +08:00
test zhongjianfei@huawei.com 2021-08-28 12:11:55 +08:00
.gitignore zhongjianfei@huawei.com 2021-08-28 12:11:55 +08:00
.jscsrc zhongjianfei@huawei.com 2021-08-28 12:11:55 +08:00
circle.yml zhongjianfei@huawei.com 2021-08-28 12:11:55 +08:00
gulpfile.js zhongjianfei@huawei.com 2021-08-28 12:11:55 +08:00
index.js zhongjianfei@huawei.com 2021-08-28 12:11:55 +08:00
LICENSE zhongjianfei@huawei.com 2021-08-28 12:11:55 +08:00
NOTICE zhongjianfei@huawei.com 2021-08-28 12:11:55 +08:00
package.json zhongjianfei@huawei.com 2021-08-28 12:11:55 +08:00
README.md zhongjianfei@huawei.com 2021-08-28 12:11:55 +08:00

Weex <script> Transformer

NPM version Build status Downloads

transform JavaScript

API

  • fix(code): automatically add data: {function () {return {...}}} to init component data from data: {...}
  • parseAndReplaceRequire(code): parse third party js required in <script>, return the modified code and collect requires
    • note that require is automatically changed to browserifyRequire because of the built-in require in js-framework
  • getBundle(requires): bundle all the third party js required in <script> by using browserify