Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

weexteam/scripter-transformer-for-Apache-Weex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

<script> transformer for Apache Weex

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published