This repository was archived by the owner on Jul 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,8 @@ export class Aleph implements IAleph {
134
134
const apiDir = join ( srcDir , 'api' )
135
135
const pagesDir = join ( srcDir , 'pages' )
136
136
const manifestFile = join ( this . #buildDir, 'build.manifest.json' )
137
+ const { browsers, target : buildTarget } = this . #config. build
138
+ const buildBrowsers = Object . keys ( browsers ) . sort ( ) . map ( key => key + ':' + ( browsers as any ) [ key ] ) . join ( ' ' )
137
139
138
140
// remove the existent build dir when the compiler is updated,
139
141
// or using a different aleph version, or build for different target/browsers.
@@ -146,8 +148,8 @@ export class Aleph implements IAleph {
146
148
v . compiler !== wasmChecksum ||
147
149
v . aleph !== VERSION ||
148
150
( this . mode === 'production' && (
149
- v . buildTarget !== this . #config . build . target ||
150
- v . buildBrowsers !== this . #config . build . browsers
151
+ v . buildTarget !== buildTarget ||
152
+ v . buildBrowsers !== buildBrowsers
151
153
) )
152
154
)
153
155
) {
@@ -163,8 +165,8 @@ export class Aleph implements IAleph {
163
165
aleph : VERSION ,
164
166
deno : Deno . version . deno ,
165
167
compiler : wasmChecksum ,
166
- buildTarget : this . #config . build . target ,
167
- buildBrowsers : this . #config . build . browsers
168
+ buildTarget,
169
+ buildBrowsers,
168
170
} , undefined , 2 ) )
169
171
170
172
// load .env[.*] files
You can’t perform that action at this time.
0 commit comments