This repository was archived by the owner on Feb 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
const bsconfig = require ( './bsconfig.json' ) ;
2
2
3
- const transpileModules = [ "bs-platform" ] . concat ( bsconfig [ "bs-dependencies" ] ) ;
3
+ const transpileModules = [ "bs-platform" , "mdast-util-to-string" ] . concat ( bsconfig [ "bs-dependencies" ] ) ;
4
4
const withTM = require ( "next-transpile-modules" ) ( transpileModules ) ;
5
5
6
6
const config = {
@@ -13,6 +13,9 @@ const config = {
13
13
fs : false
14
14
}
15
15
}
16
+ config . experiments = {
17
+ topLevelAwait : true ,
18
+ }
16
19
return config
17
20
} ,
18
21
// Might need to move this to nginx or other config,
Original file line number Diff line number Diff line change 42
42
"gray-matter" : " ^4.0.3" ,
43
43
"http-server" : " ^0.12.3" ,
44
44
"js-yaml" : " ^4.1.0" ,
45
- "mdast-util-to-string" : " ^2.0 .0" ,
45
+ "mdast-util-to-string" : " ^3.1 .0" ,
46
46
"next-transpile-modules" : " ^7.1.0" ,
47
47
"rehype-highlight" : " ^4.1.0" ,
48
48
"rehype-stringify" : " ^8.0.0" ,
Original file line number Diff line number Diff line change
1
+ %%raw (`
2
+ const MdastUtilToStringInternal = (await import (' mdast-util-to-string' )).toString
3
+ ` )
4
+
1
5
module MarkdownTableOfContents = {
2
6
type rec toc = {
3
7
label : string ,
@@ -46,5 +50,5 @@ type attacher = unit => transformer
46
50
@module ("rehype-highlight" ) external rehypeHighlight : attacher = "default"
47
51
48
52
module MdastUtilToString = {
49
- @module ( "mdast-util-to-string" ) external toString : headingnode => string = "default "
53
+ @val external toString : headingnode => string = "MdastUtilToStringInternal "
50
54
}
Original file line number Diff line number Diff line change @@ -1843,6 +1843,11 @@ mdast-util-to-string@^2.0.0:
1843
1843
resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz#b8cfe6a713e1091cb5b728fc48885a4767f8b97b"
1844
1844
integrity sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==
1845
1845
1846
+ mdast-util-to-string@^3.1.0 :
1847
+ version "3.1.0"
1848
+ resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-3.1.0.tgz#56c506d065fbf769515235e577b5a261552d56e9"
1849
+ integrity sha512-n4Vypz/DZgwo0iMHLQL49dJzlp7YtAJP+N07MZHpjPf/5XJuHUWstviF4Mn2jEiR/GNmtnRRqnwsXExk3igfFA==
1850
+
1846
1851
mdurl@^1.0.0 :
1847
1852
version "1.0.1"
1848
1853
resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e"
You can’t perform that action at this time.
0 commit comments