weex-scripter

    0.1.6 • Public • Published

    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

    Keywords

    Install

    npm i weex-scripter

    DownloadsWeekly Downloads

    111

    Version

    0.1.6

    License

    MIT

    Unpacked Size

    21.3 kB

    Total Files

    19

    Last publish

    Collaborators

    • hanks
    • songsiqi