@@ -229,10 +229,13 @@ impl Fold for ResolveFold {
229
229
} ) )
230
230
} else {
231
231
if self . resolve_star_exports {
232
+ let mut src = fixed_url. to_owned ( ) ;
233
+ src. push ( ':' ) ;
234
+ src. push_str ( resolved_path. as_str ( ) ) ;
232
235
resolver. star_exports . push ( fixed_url. clone ( ) ) ;
233
236
ModuleItem :: ModuleDecl ( ModuleDecl :: ExportAll ( ExportAll {
234
237
span : DUMMY_SP ,
235
- src : new_str ( fixed_url . into ( ) ) ,
238
+ src : new_str ( src . into ( ) ) ,
236
239
asserts : None ,
237
240
} ) )
238
241
} else {
@@ -696,8 +699,9 @@ mod tests {
696
699
export default function Index() {
697
700
return (
698
701
<>
699
- <link rel="stylesheet" href="../style/index.css" />
700
- <head></head>
702
+ <head>
703
+ <link rel="stylesheet" href="../style/index.css" />
704
+ </head>
701
705
<Logo />
702
706
<AsyncLogo />
703
707
<Nav />
@@ -716,6 +720,7 @@ mod tests {
716
720
vec ! [
717
721
"https://esm.sh/react" . into( ) ,
718
722
"https://esm.sh/react-dom" . into( ) ,
723
+ "https://deno.land/x/aleph/framework/react/head.ts" . into( ) ,
719
724
"/components/logo.tsx" . into( ) ,
720
725
"/shared/iife.ts" . into( ) ,
721
726
] ,
@@ -738,6 +743,9 @@ mod tests {
738
743
assert ! ( code. contains(
739
744
"const { default: __ALEPH_Head } = __ALEPH.pack[\" https://deno.land/x/aleph/framework/react/head.ts\" ]"
740
745
) ) ;
746
+ assert ! ( code. contains(
747
+ "import __ALEPH_Stylelink from \" ../-/deno.land/x/aleph/framework/react/stylelink.bundling.js\" "
748
+ ) ) ;
741
749
assert ! ( code. contains( "export const $$star_0 = __ALEPH.pack[\" https://esm.sh/react\" ]" ) ) ;
742
750
assert ! ( code. contains( "export const ReactDom = __ALEPH.pack[\" https://esm.sh/react-dom\" ]" ) ) ;
743
751
assert ! ( code. contains( "export const { render } = __ALEPH.pack[\" https://esm.sh/react-dom\" ]" ) ) ;
0 commit comments