({
    baseUrl: "build/standalone/lib",
    mainConfigFile: "build/config/requirejs-config-dev.js",
    dir: "build/standalone-optimized/lib",
    findNestedDependencies: true,
    removeCombined: true,
    skipDirOptimize: true,
    useStrict: false,
    paths: {
        "browser_test": "empty:"
    },
    modules: [
        {
            name: "lodash"
        },
        {
            name: "wed/wed",
            include: [
                "wed/modes/generic/generic",
                "wed/modes/generic/generic_meta",
                "wed/modes/generic/metas/tei_meta"
            ],
            exclude: [
                "jquery",
                "bootstrap",
                "log4javascript",
                "jquery.bootstrap-growl",
                "pubsub-js",
                "lodash"
            ]
        }
    ],
    // This prevents a problem in rangy 1.3alpha804 and later. We
    // basically do not want it to use its internal AMD support
    // because it cannot be optimized.
    onBuildWrite: function (moduleName, path, contents) {
        if (moduleName === "external/rangy/rangy-core") {
            // This temporary undefines define.
            return "(function () { var __wed_saved_define = define; \n" +
                "define = undefined;" + contents +
                "define = __wed_saved_define; })()";
        }
        return contents;
    }
})

@@ -363,32 +363,80 @@
    %7D,%0A        %7B%0A
+            name: %22jquery%22%0A        %7D,%0A        %7B%0A
             name

Optimize jQuery in the optimized build.