weex-scripter
v0.1.6
Published
Weex <script> transformer
Downloads
194
Readme
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