mirror of
https://gitee.com/openharmony/third_party_weex-loader
synced 2024-11-23 07:20:51 +00:00
a1301d885e
Signed-off-by: bojiang <jiangbo91@huawei.com> Change-Id: Ibd686b8e9ce6b3ef1dc58c0ddeac85debe4f1090 |
||
---|---|---|
.. | ||
lib | ||
test | ||
.gitignore | ||
.jscsrc | ||
circle.yml | ||
gulpfile.js | ||
index.js | ||
LICENSE | ||
NOTICE | ||
package.json | ||
README.md |
Weex <script>
Transformer
transform JavaScript
API
fix(code)
: automatically adddata: {function () {return {...}}}
to init component data fromdata: {...}
parseAndReplaceRequire(code)
: parse third party js required in<script>
, return the modified code and collect requires- note that
require
is automatically changed tobrowserifyRequire
because of the built-inrequire
injs-framework
- note that
getBundle(requires)
: bundle all the third party js required in<script>
by usingbrowserify