We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f1b6b0 commit f904974Copy full SHA for f904974
packages/bson-bench/src/common.ts
@@ -46,8 +46,8 @@ export class Package {
46
this.library = match[1] as 'bson' | 'bson-ext';
47
48
this.localPath = match[2];
49
- this.computedModuleName = `${this.library}-local-${this.localPath.replaceAll('/', '_')}`;
50
- this.computedModuleName = `${this.library}-local-${this.localPath.replaceAll('\\', '_')}`;
+ const cleanedLocalPath = this.localPath.replaceAll('/', '_').replaceAll('\\', '_');
+ this.computedModuleName = `${this.library}-local-${cleanedLocalPath}`;
51
} else {
52
throw new Error('unknown package specifier');
53
}
0 commit comments