getify / moduloze

Convert CommonJS (CJS) modules to UMD and ESM formats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TODOs

getify opened this issue · comments

  • ESM: detect and combine multiple named imports (import { x } from ..)
  • ESM: detect and combine multiple named exports (export { x })
  • UMD: detect and combine multiple named exports ($module$exports.x = ..)
  • support (flag/config) outputting meta info for a UMD build, such as the order of dependencies (which would be used in the default bundle) in various formats, list of any un-referenced dependencies (that need to be proactively loaded), etc
  • support (flag/config) logging of unknown dependencies encountered during builds
  • audit all the binding/context values being produced in analysis to see if they're actually being used by the builds
  • change all error reporting to include the file/location info (with custom error), or include stack on exception
  • finish docs of other library features besides the build(..) method
  • move the var _exp = {} from the top of a module to right before the first export (that uses it)
  • fix bug #2
  • fix bug #3
  • change any inserted vars into lets