Skip to content Skip to sidebar Skip to footer

Require.js + Backbone Optimization

Good afternoon, I'm trying to optimize a source code based on Require.js and Backbone using r.js but I'm getting the following error during the compilation : Tracing dependencies f

Solution 1:

James Burke says:

The text plugin needs be loaded by the loader for it to process text! depenencies. Loader plugins are executed as part of a build to resolve their resources.

So it should be enough to remove the text: "empty:" from the paths config, and just leave the excludes: in so it is not included in the final build result. This assumes you have text.js available locally to be read by the optimizer.

https://github.com/jrburke/r.js/issues/221

Post a Comment for "Require.js + Backbone Optimization"