Add jquery in cesium as a module

Hi everyone:

I want use the jquery as a moduel in cesium.

require({
    //baseUrl : './',
    paths : {
        'jquery' : '../../Source/ThirdParty/jquery-3.2.0.min'
    },
    shim: {
        'jquery' : {
            exports: 'jquery'
        }
    }
});
define([
        "jquery"
    ], function(jquery) {
    "use strict";
    return jquery;
});

Is ok in AMD mod. but **npm run combine can not be use.** **How can i make the compiled cesium.js file contain jquery**

Hi there,

Try removing the shim property, since jquery doesn’t need it.

  • Rachel