@@ -53,14 +53,14 @@ impl Fold for ResolveFold {
53
53
54
54
// resolve import/export url
55
55
// [/pages/index.tsx]
56
- // - es6 mode:
56
+ // - dev mode:
57
57
// - `import React, { useState } from "https://esm.sh/react"` -> `import React, {useState} from "/-/esm.sh/react.js"`
58
58
// - `import * as React from "https://esm.sh/react"` -> `import * as React from "/-/esm.sh/react.js"`
59
59
// - `import Logo from "../components/logo.tsx"` -> `import Logo from "/components/logo.js"`
60
60
// - `import "../style/index.css" -> `import "/style/index.css.js"`
61
61
// - `export React, {useState} from "https://esm.sh/react"` -> `export React, {useState} from * from "/-/esm.sh/react.js"`
62
62
// - `export * from "https://esm.sh/react"` -> `export * from "/-/esm.sh/react.js"`
63
- // - bundling mode:
63
+ // - bundle mode:
64
64
// - `import React, { useState } from "https://esm.sh/react"` -> `const { default: React, useState } = __ALEPH.pack["https://esm.sh/react"];`
65
65
// - `import * as React from "https://esm.sh/react"` -> `const React = __ALEPH.pack["https://esm.sh/react"]`
66
66
// - `import Logo from "../components/logo.tsx"` -> `const { default: Logo } = __ALEPH.pack["/components/logo.tsx"]`
@@ -736,11 +736,9 @@ mod tests {
736
736
assert ! ( code. contains( "const { default: React , useState , useEffect: useEffect_ } = __ALEPH.pack[\" https://esm.sh/react\" ]" ) ) ;
737
737
assert ! ( code. contains( "const React_ = __ALEPH.pack[\" https://esm.sh/react\" ]" ) ) ;
738
738
assert ! ( code. contains( "const { default: Logo } = __ALEPH.pack[\" /components/logo.tsx\" ]" ) ) ;
739
- assert ! (
740
- code. contains( "import Nav from \" ../components/nav.bundling.js#/components/nav.tsx@000000\" " )
741
- ) ;
739
+ assert ! ( code. contains( "import Nav from \" ../components/nav.bundling.js\" " ) ) ;
742
740
assert ! ( !code. contains( "__ALEPH.pack[\" /shared/iife.ts\" ]" ) ) ;
743
- assert ! ( code. contains( "import \" ../shared/iife2.bundling.js#/shared/iife2.ts@000000 \" " ) ) ;
741
+ assert ! ( code. contains( "import \" ../shared/iife2.bundling.js\" " ) ) ;
744
742
assert ! (
745
743
code. contains( "AsyncLogo = React.lazy(()=>__ALEPH.import(\" /components/async-logo.tsx\" " )
746
744
) ;
@@ -751,7 +749,7 @@ mod tests {
751
749
"import __ALEPH_StyleLink from \" ../-/deno.land/x/aleph/framework/react/components/StyleLink.bundling.js\" "
752
750
) ) ;
753
751
assert ! ( code. contains( "import \" ../-/esm.sh/tailwindcss/dist/tailwind.min.css.bundling.js\" " ) ) ;
754
- assert ! ( code. contains( "import \" ../style/index.css.bundling.js#/style/index.css@000000 \" " ) ) ;
752
+ assert ! ( code. contains( "import \" ../style/index.css.bundling.js\" " ) ) ;
755
753
assert ! ( code. contains( "export const $$star_0 = __ALEPH.pack[\" https://esm.sh/react\" ]" ) ) ;
756
754
assert ! ( code. contains( "export const ReactDom = __ALEPH.pack[\" https://esm.sh/react-dom\" ]" ) ) ;
757
755
assert ! ( code. contains( "export const { render } = __ALEPH.pack[\" https://esm.sh/react-dom\" ]" ) ) ;
0 commit comments