This repository was archived by the owner on Jul 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +20
-5
lines changed Expand file tree Collapse file tree 6 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 34
34
version : latest
35
35
36
36
- name : Deno test
37
- run : deno test -A --unstable --import-map=import_map .json --location=https://deno.land/x/aleph
37
+ run : deno test -A --unstable --location=http://localhost -c=deno .json --import-map=import_map.json
38
38
39
39
- name : Cargo test
40
40
run : cd compiler && cargo test --all
Original file line number Diff line number Diff line change 23
23
},
24
24
"deno.enable" : true ,
25
25
"deno.unstable" : true ,
26
+ "deno.config" : " ./deno.json" ,
26
27
"deno.importMap" : " ./import_map.json" ,
27
28
"deno.suggest.imports.hosts" : {
28
29
"https://deno.land" : true ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ ALEPH_DEV=true deno run -A --unstable --location=http://localhost cli.ts start .
31
31
ALEPH_DEV=true deno run -A --unstable --location=http://localhost cli.ts build ./examples/hello-world -L debug
32
32
33
33
# run all tests
34
- deno test -A --unstable --location=http://localhost -- import-map=./ import_map.json
34
+ deno test -A --unstable --location=http://localhost -c=deno.json -- import-map=import_map.json
35
35
```
36
36
37
37
## Project Structure
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export class Bundler {
183
183
for ( const { test, transform } of this . #aleph. transformListeners ) {
184
184
if ( test instanceof RegExp && test . test ( mod . specifier ) ) {
185
185
const { jsBuffer, ready, ...rest } = mod
186
- const ret = await transform ( { module : { ... structuredClone ( rest ) } , code, bundleMode : true } )
186
+ const ret = await transform ( { module : rest , code, bundleMode : true } )
187
187
if ( util . isFilledString ( ret ?. code ) ) {
188
188
code = ret ! . code
189
189
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "target" : " esnext" ,
4
+ "lib" : [
5
+ " dom" ,
6
+ " dom.iterable" ,
7
+ " dom.asynciterable" ,
8
+ " deno.ns" ,
9
+ " deno.unstable"
10
+ ],
11
+ "jsxFactory" : " react" ,
12
+ "jsxFragmentFactory" : " Fragment"
13
+ }
14
+ }
Original file line number Diff line number Diff line change @@ -962,7 +962,7 @@ export class Aleph implements IAleph {
962
962
for ( const { test, transform } of this . #transformListeners) {
963
963
if ( test === 'hmr' ) {
964
964
const { jsBuffer, ready, ...rest } = module
965
- const ret = await transform ( { module : structuredClone ( rest ) , code } )
965
+ const ret = await transform ( { module : rest , code } )
966
966
if ( util . isFilledString ( ret ?. code ) ) {
967
967
code = ret ! . code
968
968
}
@@ -1338,7 +1338,7 @@ export class Aleph implements IAleph {
1338
1338
for ( const { test, transform } of this . #transformListeners) {
1339
1339
if ( test instanceof RegExp && test . test ( specifier ) ) {
1340
1340
const { jsBuffer, ready, ...rest } = module
1341
- const ret = await transform ( { module : { ... structuredClone ( rest ) } , code : jsCode , map : sourceMap } )
1341
+ const ret = await transform ( { module : rest , code : jsCode , map : sourceMap } )
1342
1342
if ( util . isFilledString ( ret ?. code ) ) {
1343
1343
jsCode = ret ! . code
1344
1344
}
You can’t perform that action at this time.
0 commit comments