Opened 10 years ago

Closed 10 years ago

#9861 closed enhancement (wontfix)

Support CommonJS-style modules in the loader

Reported by: James Burke Owned by: James Burke
Priority: high Milestone: future
Component: Loader Version: 1.3.2
Keywords: Cc: Eugene Lazutkin, Adam Peller
Blocked By: Blocking:

Description

Allow Dojo to load CommonJS modules. This means at minimum:

  • not requiring dojo.provide usage.
  • an alias for require = dojo.require
  • an alias for exports as the actual module object.

Some complications with debugAtAllCosts is there, but workable.

Only enable via a djConfig switch for now.

Change History (3)

comment:1 Changed 10 years ago by Eugene Lazutkin

Cc: Eugene Lazutkin added

comment:2 Changed 10 years ago by Adam Peller

Cc: Adam Peller added

comment:3 Changed 10 years ago by James Burke

Milestone: 1.4future
Resolution: wontfix
Status: newclosed

I think it is better to pursue a module loading syntax that works best in the browser, the CommonJS stuff is more like our current loaders, but suffers from the downsides of our current loader.

Note: See TracTickets for help on using tickets.