タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

rollupに関するamagitakayosiのブックマーク (2)

  • Tree shakingの話 - コンパイラかく語りき

    前回、Rollupについて書きました。 chuckwebtips.hatenablog.com Rollupの中心的な概念として、”tree shaking”というものがあるそうです。今回はその仕組について調べましたのでメモします。 ※筆者は最近フロントエンドの世界にやってきました。この記事はあくまで勉強メモです。誤りがありましたら、ご指摘いただけると助かります。 Tree Shaking Tree Shakingとは、直訳すると「木を揺らすこと」。転じて、何かを実行することという意味があるようです。 Rollupの文脈においては、「不要なものを削ぎ落とす」という意味合いだと思われます。 不要なものを削ぎ落とす? では、不要なものとはなんでしょうか? それは、bundleファイルからの不使用なexportです。Rollup.jsは、ES6の静的なモジュール構造を利用して、不使用なexpor

    Tree shakingの話 - コンパイラかく語りき
  • PouchDB 5.2.0: A better build system with Rollup

    "Rollup! Rollup for the mystery tour!" - Lennon and McCartney Besides a slew of bugfixes and the new revs_limit feature, the big news about 5.2.0 is that PouchDB is now authored with ES6 modules rather than CommonJS. Using Rollup, it's transpiled into one big index.js for Node and an index-browser.js for Webpack/Browserify. The most immediate benefit is that PouchDB's minified/gzipped size has dro

    amagitakayosi
    amagitakayosi 2016/03/23
    PouchDBがRollupで固めたJSを配信するようになった経緯。ユーザーがBrowserifyとWebpackどちらを使うかによって壊れたりして苦しんでたとのこと。
  • 1