opencoweb/coweb — Issue #135: [Optimization] Configuration code in coweb/main can cause problems for build tools/optimizers
Author: rbackhouse
Created: 2011-10-31 13:01:35+00:00
State: open

coweb/main currently contains this code

define([
cowebConfig.sessionImpl,
cowebConfig.listenerImpl,
cowebConfig.collabImpl

The values of the dependencies are dynamically set from the cowebConfig object :

cowebConfig = {
sessionImpl : cowebConfig.sessionImpl || 'coweb/session/BayeuxSession',
listenerImpl : cowebConfig.listenerImpl || 'coweb/listener/UnmanagedHubListener',
collabImpl : cowebConfig.collabImpl || 'coweb/collab/UnmanagedHubCollab',

Build tools such as the Dojo 1.7 builder has problems identifying the dependencies with code such as this.