@@ -41,7 +41,8 @@ const cdnScriptsOptional = {
4141 '{{version}}/modules/sunburst.js' : 1 ,
4242 '{{version}}/modules/xrange.js' : 1 ,
4343 '{{version}}/modules/streamgraph.js' : 1 ,
44- '{{version}}/modules/tilemap.js' : 1
44+ '{{version}}/modules/tilemap.js' : 1 ,
45+ '{{version}}/modules/histogram-bellcurve.js' : 1
4546} ;
4647
4748// The scripts here will appear as user prompts
@@ -53,14 +54,16 @@ const cdnScriptsQuery = {
5354// Push raw URL's here to force include them
5455const cdnAdditional = [ ] ;
5556
57+ // Push map collection includes here
58+ const cdnMapCollection = [ ] ;
59+
5660const cdnScriptsCommon = [
5761 "{{version}}/highcharts-3d.js" ,
5862 "{{version}}/modules/data.js" ,
5963 "{{version}}/modules/funnel.js" ,
6064 "{{version}}/modules/solid-gauge.js" ,
6165 "{{version}}/modules/heatmap.js" ,
62- "{{version}}/modules/treemap.js" ,
63- "{{version}}/modules/histogram-bellcurve.js"
66+ "{{version}}/modules/treemap.js"
6467] . concat ( Object . keys ( cdnScriptsOptional ) ) ;
6568
6669const cdnScriptsStyled = [
@@ -271,8 +274,13 @@ function embedAll(version, includeStyled, includeMaps, includeMoment, optionals)
271274
272275 if ( includeMaps ) {
273276 console . log ( 'Including maps support' . green ) ;
274- standard = standard . concat ( cdnMaps ) ;
275- styled = styled . concat ( cdnMaps ) ;
277+ standard = standard . concat ( cdnMaps ) . concat ( cdnMapCollection ) ;
278+ styled = styled . concat ( cdnMaps ) . concat ( cdnMapCollection ) ;
279+
280+ // Map collections are user supplied, so we need to allow them to 404
281+ cdnMapCollection . forEach ( ( url ) => {
282+ cdnScriptsOptional [ url ] = 1 ;
283+ } ) ;
276284 }
277285
278286 if ( includeMoment ) {
0 commit comments