LoginSignup
0
0

More than 5 years have passed since last update.

underscoreをprepack

Last updated at Posted at 2019-04-26

-prepackは関数の再計算と再配置をしてcodeの最適化をする。内部はconst let varも全てvarとなる。
-ECMA6まで対応しようとしている。async await はエラーを吐く。
-demo https://codepen.io/gnjo/pen/jRXYpz?editors=1010
underscoreをprepack

//core
 let result = Prepack.prepackSources(sources, options)////
 //console.log(result)
 ;
 let r=document.querySelector('#ret')
 r.textContent=result.code
//pug
script(src="https://gnjo.github.io/prepack.min.js")
#ret(contenteditable="plaintext-only")
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0