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

Commit e51fabe

Browse files
committed
Use fastTransform in prod mode
1 parent 06aa05a commit e51fabe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/aleph.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,8 +1260,8 @@ export class Aleph implements IAleph {
12601260
}
12611261

12621262
let ret: TransformResult
1263-
// use `fastTransform` when the module is remote non-jsx module in `development` mode
1264-
if (this.isDev && util.isLikelyHttpURL(specifier) && source.type !== SourceType.JSX && source.type !== SourceType.TSX) {
1263+
// use `fastTransform` when the module is remote non-jsx module
1264+
if (util.isLikelyHttpURL(specifier) && source.type !== SourceType.JSX && source.type !== SourceType.TSX) {
12651265
ret = await fastTransform(specifier, source, { react: this.#config.react })
12661266
} else {
12671267
ret = await transform(specifier, source.code, {

0 commit comments

Comments
 (0)