Skip to content

Commit

Permalink
Fixed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Beny committed Feb 23, 2024
1 parent f17a058 commit 2b7af7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/wrangler/src/config/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ interface EnvironmentInheritable {
/**
* Determines whether Wrangler will preserve bundled file names.
* Defaults to false.
* If left unset, files will be named using the pattern ${fileHash}-${basename},
* If left unset, files will be named using the pattern ${fileHash}-${basename},
* for example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.
*/
preserve_file_names: boolean | undefined;
Expand Down
4 changes: 2 additions & 2 deletions packages/wrangler/src/deployment-bundle/module-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ export function createModuleCollector(props: {
.update(fileContent)
.digest("hex");
const fileName = props.preserveFileNames
? filePath
: `./${fileHash}-${path.basename(args.path)}`;
? filePath
: `./${fileHash}-${path.basename(args.path)}`;

const { rule } =
rulesMatchers.find(({ regex }) => regex.test(fileName)) || {};
Expand Down

0 comments on commit 2b7af7c

Please sign in to comment.