Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit ed8f492

Browse files
committed
Clean up
1 parent 7b19d01 commit ed8f492

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

examples/remote-css/aleph.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import markdown from 'aleph/plugins/markdown.ts'
21
import type { Config } from 'aleph/types'
32

43
export default <Config>{

examples/windicss/aleph.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Config } from 'aleph/types'
21
import windicss from 'https://deno.land/x/[email protected]/plugin.ts'
2+
import type { Config } from 'aleph/types'
33

44
export default <Config>{
55
plugins: [windicss]

framework/react/renderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function render(
7373
let el: ReactElement
7474
if (App) {
7575
if (isLikelyReactComponent(App)) {
76-
if (pageProps.Page == null) {
76+
if (pageProps.Page === null) {
7777
el = createElement(E404Page)
7878
} else {
7979
el = createElement(App, pageProps)
@@ -82,7 +82,7 @@ export async function render(
8282
el = createElement(E400MissingComponent, { name: 'Custom App' })
8383
}
8484
} else {
85-
if (pageProps.Page == null) {
85+
if (pageProps.Page === null) {
8686
el = createElement(E404Page)
8787
} else {
8888
el = createElement(pageProps.Page, pageProps.pageProps)

server/aleph.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ export class Aleph implements IAleph {
13811381
let depModule: Module | null = null
13821382
if (ignoreDeps || virtual) {
13831383
depModule = this.getModule(specifier)
1384-
if (depModule == null && virtual) {
1384+
if (depModule === null && virtual) {
13851385
const [mod] = await this.#initModule(specifier, { virtual: true })
13861386
depModule = mod
13871387
}
@@ -1425,7 +1425,7 @@ export class Aleph implements IAleph {
14251425
for (const dep of deps) {
14261426
const { specifier, hashLoc } = dep
14271427
if (specifier === by.specifier && hashLoc !== undefined) {
1428-
if (hash == null) {
1428+
if (hash === null) {
14291429
hash = this.computeModuleHash(by)
14301430
}
14311431
if (await this.#replaceDepHash(mod, hashLoc, hash)) {

server/analyzer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class Analyzer {
9090
deps: []
9191
}
9292

93-
if (__tracing.size == 0 && isPreload) {
93+
if (__tracing.size === 0 && isPreload) {
9494
graph.isPreload = true
9595
}
9696

server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class Server {
154154
}
155155

156156
const relPath = util.trimPrefix(pathname, '/_aleph')
157-
if (relPath == '/main.js') {
157+
if (relPath === '/main.js') {
158158
resp.body = await aleph.createMainJS(false)
159159
resp.setHeader('Content-Type', 'application/javascript; charset=utf-8')
160160
end()

0 commit comments

Comments
 (0)