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 +7
-8
lines changed Expand file tree Collapse file tree 6 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
- import markdown from 'aleph/plugins/markdown.ts'
2
1
import type { Config } from 'aleph/types'
3
2
4
3
export default < Config > {
Original file line number Diff line number Diff line change 1
- import type { Config } from 'aleph/types'
2
1
import windicss from 'https://deno.land/x/[email protected] /plugin.ts'
2
+ import type { Config } from 'aleph/types'
3
3
4
4
export default < Config > {
5
5
plugins : [ windicss ]
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export async function render(
73
73
let el : ReactElement
74
74
if ( App ) {
75
75
if ( isLikelyReactComponent ( App ) ) {
76
- if ( pageProps . Page == null ) {
76
+ if ( pageProps . Page === null ) {
77
77
el = createElement ( E404Page )
78
78
} else {
79
79
el = createElement ( App , pageProps )
@@ -82,7 +82,7 @@ export async function render(
82
82
el = createElement ( E400MissingComponent , { name : 'Custom App' } )
83
83
}
84
84
} else {
85
- if ( pageProps . Page == null ) {
85
+ if ( pageProps . Page === null ) {
86
86
el = createElement ( E404Page )
87
87
} else {
88
88
el = createElement ( pageProps . Page , pageProps . pageProps )
Original file line number Diff line number Diff line change @@ -1381,7 +1381,7 @@ export class Aleph implements IAleph {
1381
1381
let depModule : Module | null = null
1382
1382
if ( ignoreDeps || virtual ) {
1383
1383
depModule = this . getModule ( specifier )
1384
- if ( depModule == null && virtual ) {
1384
+ if ( depModule === null && virtual ) {
1385
1385
const [ mod ] = await this . #initModule( specifier , { virtual : true } )
1386
1386
depModule = mod
1387
1387
}
@@ -1425,7 +1425,7 @@ export class Aleph implements IAleph {
1425
1425
for ( const dep of deps ) {
1426
1426
const { specifier, hashLoc } = dep
1427
1427
if ( specifier === by . specifier && hashLoc !== undefined ) {
1428
- if ( hash == null ) {
1428
+ if ( hash === null ) {
1429
1429
hash = this . computeModuleHash ( by )
1430
1430
}
1431
1431
if ( await this . #replaceDepHash( mod , hashLoc , hash ) ) {
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export class Analyzer {
90
90
deps : [ ]
91
91
}
92
92
93
- if ( __tracing . size == 0 && isPreload ) {
93
+ if ( __tracing . size === 0 && isPreload ) {
94
94
graph . isPreload = true
95
95
}
96
96
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export class Server {
154
154
}
155
155
156
156
const relPath = util . trimPrefix ( pathname , '/_aleph' )
157
- if ( relPath == '/main.js' ) {
157
+ if ( relPath === '/main.js' ) {
158
158
resp . body = await aleph . createMainJS ( false )
159
159
resp . setHeader ( 'Content-Type' , 'application/javascript; charset=utf-8' )
160
160
end ( )
You can’t perform that action at this time.
0 commit comments