transform JavaScript
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