calls from the source files and combines all modules into a single file.
undef is alpha software and not yet ready for use in production systems.
undef can be installed with npm.
npm install -g undef
undef can currently build a project of AMD modules, where each module is in an
own file, and each file contains only the module definition (
Source comments are ok. Only anonymous modules are supported at the moment.
There is no support for the special dependencies “require”, “module” and “exports” yet.
Uses “entry/module” as entry point and resolves all dependencies. The resulting source code is written to stdout.
-d/--basedir DIR – the base path to use for module resolution. Defaults to the current working directory.
-p/--paths PATHS – paths for individual modules. Accepts a comma-separated
list of mappings, e.g.
are resolved relative to the current working directory, not to --basedir.
This is different from require.js.
-o/--output FILE write output to this file instead of stdout.
The following things are not in the scope of this project: