我一直在尝试将 highstock 作为 require 模块加载。我想知道是否有人设法让这个工作?我可以将 highcharts 作为一个 require 模块加载,它工作正常,但我的 highstock 垫片不起作用。我得到一个 Highcharts.Stockchart 不是构造函数错误。
"highcharts": "../vendor/js/libs/highcharts",
"highstock": "../vendor/js/libs/highstock",
...
shim: {
// Put shims here.
"highcharts": {
"exports": "Highcharts",
"deps": [ "jquery"]
},
"highstock": {
"exports": "StockChart",
"deps": [ "jquery", "highcharts"]
},
谢谢