Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/bundlers/applications/NormalizedSchema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { NormalizedSchema } from "@smithy/core/schema";
10 changes: 10 additions & 0 deletions tests/bundlers/applications/all-protocols.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export {
AwsRestJsonProtocol,
AwsEc2QueryProtocol,
AwsJsonRpcProtocol,
AwsRestXmlProtocol,
AwsJson1_0Protocol,
AwsJson1_1Protocol,
AwsSmithyRpcV2CborProtocol,
AwsQueryProtocol,
} from "@aws-sdk/core/protocols";
Empty file.
1 change: 1 addition & 0 deletions tests/bundlers/applications/single-cbor-xml-protocol.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { AwsRestXmlProtocol } from "@aws-sdk/core/protocols";
1 change: 1 addition & 0 deletions tests/bundlers/applications/single-json-protocol.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
1 change: 1 addition & 0 deletions tests/bundlers/applications/single-xml-protocol.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { AwsRestXmlProtocol } from "@aws-sdk/core/protocols";
4 changes: 3 additions & 1 deletion tests/bundlers/runner/BundlerSizeBenchmarker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ export class BundlerSizeBenchmarker {

await esbuild.build({
entryPoints: [entryPoint],
platform: "browser",
bundle: true,
minify: true,
mainFields: ["browser", "module", "main"],
outfile: outfile,
format: "esm",
target: "es2015",
target: "es2022",
});

const stat = fs.statSync(outfile);
Expand Down
3 changes: 3 additions & 0 deletions tests/bundlers/runner/run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const applicationFolder = path.join(__dirname, "..", "applications");
const report = new ReportMarkdown();

for (const app of fs.readdirSync(applicationFolder)) {
if (fs.lstatSync(path.join(applicationFolder, app)).isDirectory()) {
continue;
}
const benchmarker = new BundlerSizeBenchmarker({ application: app });

const stat = await benchmarker.all();
Expand Down
Loading