An example of a Mimosa app that doesn't involve RequireJS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Using Mimosa in a non-requirejs application

This is a very tiny example of a Mimosa project that does not use requirejs. Notable tweaks:

  • Script tags added to views/index.html
  • No defines/requires used in code
  • require removed from the list of mimosa modules in the and require config block removed as well. With the change to the default list of modules, obviously the modules array needs to be uncommented.

Obviously, with no require, Mimosa's use of r.js is no longer available. So while Mimosa will happily minify code as it is compiled, without r.js it cannot do optimized builds.

Additionally, if CommonJS is being used and using the AMD CommonJS wrapper via the mimosa-require-commonjs module module is distasteful, far-tarm modules will have full CommonJS support, rather than CommonJS support via RequireJS. That is not on the near-term roadmap, but I definitely would support someone familiar with that problem to put a Mimosa module solution together.


  • git clone git://
  • cd MimosaNoRequireJS
  • mimosa watch -s
  • View the app