This repository was archived by the owner on Jul 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,7 @@ export class Bundler {
129
129
}
130
130
131
131
private async compile ( mod : Module , external : string [ ] ) : Promise < string > {
132
- const hash = mod . deps . length > 0 ? computeHash ( mod . sourceHash + mod . deps . map ( ( { hash } ) => hash ) . join ( '' ) ) : mod . sourceHash
133
- const bundlingFile = util . trimSuffix ( mod . jsFile , '.js' ) + `.bundling.${ hash . slice ( 0 , hashShort ) } .js`
132
+ const bundlingFile = util . trimSuffix ( mod . jsFile , '.js' ) + '.bundling.js'
134
133
135
134
if ( existsFileSync ( bundlingFile ) ) {
136
135
return bundlingFile
@@ -181,7 +180,6 @@ export class Bundler {
181
180
}
182
181
}
183
182
184
- await clearBuildCache ( bundlingFile )
185
183
await ensureTextFile ( bundlingFile , code )
186
184
187
185
return bundlingFile
Original file line number Diff line number Diff line change @@ -1174,6 +1174,7 @@ export class Application implements ServerApplication {
1174
1174
}
1175
1175
1176
1176
if ( fsync ) {
1177
+ await Deno . remove ( util . trimSuffix ( mod . jsFile , '.js' ) + '.bundling.js' )
1177
1178
await Promise . all ( [
1178
1179
ensureTextFile ( metaFile , JSON . stringify ( {
1179
1180
url,
You can’t perform that action at this time.
0 commit comments