1
1
import { inspect , inspectError } from "./inspect.js" ;
2
2
import { Runtime } from "./runtime.js" ;
3
+ import * as recommendedLibraries from "./stdlib/recommendedLibraries.js" ;
4
+ import * as sampleDatasets from "./stdlib/sampleDatasets.js" ;
3
5
import { registerDatabase , registerFile } from "./stdlib.js" ;
4
6
import { DatabaseClient , FileAttachment , Generators , Mutable , now , width } from "./stdlib.js" ;
5
7
@@ -10,21 +12,8 @@ const library = {
10
12
FileAttachment : ( ) => FileAttachment ,
11
13
Generators : ( ) => Generators ,
12
14
Mutable : ( ) => Mutable ,
13
- _ : ( ) => import ( "npm:lodash" ) . then ( ( lodash ) => lodash . default ) ,
14
- aq : ( ) => import ( "npm:arquero" ) ,
15
- Arrow : ( ) => import ( "npm:apache-arrow" ) ,
16
- d3 : ( ) => import ( "npm:d3" ) ,
17
- dot : ( ) => import ( "./stdlib/dot.js" ) . then ( ( dot ) => dot . default ) ,
18
- htl : ( ) => import ( "npm:htl" ) ,
19
- html : ( ) => import ( "npm:htl" ) . then ( ( htl ) => htl . html ) ,
20
- svg : ( ) => import ( "npm:htl" ) . then ( ( htl ) => htl . svg ) ,
21
- Inputs : ( ) => import ( "./stdlib/inputs.js" ) ,
22
- L : ( ) => import ( "./stdlib/leaflet.js" ) ,
23
- mermaid : ( ) => import ( "./stdlib/mermaid.js" ) . then ( ( mermaid ) => mermaid . default ) ,
24
- Plot : ( ) => import ( "npm:@observablehq/plot" ) ,
25
- SQLite : ( ) => import ( "./stdlib/sqlite.js" ) . then ( ( sqlite ) => sqlite . default ) ,
26
- tex : ( ) => import ( "./stdlib/tex.js" ) . then ( ( tex ) => tex . default ) ,
27
- topojson : ( ) => import ( "npm:topojson-client" )
15
+ ...recommendedLibraries ,
16
+ ...sampleDatasets
28
17
} ;
29
18
30
19
const runtime = new Runtime ( library ) ;
0 commit comments