components / zepto

Shim repository for Zepto.js.

Home Page:https://github.com/madrobby/zepto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repo doesn't include optional modules

jhummel opened this issue · comments

The zepto.js file contained within seems to not include the optional modules. (like touch.js). Would it make sense to include something like zepto.full.js with a build of all the modules, or just include the optional modules as separate files?

Having them as separate files would be sweet. 👍

👍 for separate files. However, you will need to know which modules depend on other optional modules when you manually require extra files.

Perhaps we'd have separate repositories for the modules and have components/zepto as a dependency?

However, you will need to know which modules depend on other optional modules when you manually require extra files.

There are different ways to address this issue. Let's discuss and decide

  1. ES6 import + rollup
  2. AMD + webpack
  3. Throw runtime exception if dependencies are missing
  4. Manual instructions in readme.md

Add browserify in there too.