Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 59b4c8b

Browse files
committed
updated benchmark to esm
1 parent 3a01dc2 commit 59b4c8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/runtime/benchmarkTypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const startSpeedBench = async (entry: string, isDev: boolean) => {
1919
entryPoints: [entry], // https://esbuild.github.io/api/#entry-points
2020
outfile: './public/bundle.js',
2121
target: 'es2015',
22-
format: 'cjs', // https://esbuild.github.io/api/#format-commonjs
22+
format: 'esm', // https://esbuild.github.io/api/#format-commonjs
2323
platform: 'browser',
2424
minify: !isDev, // https://esbuild.github.io/api/#minify
2525
bundle: true, // https://esbuild.github.io/api/#bundle
@@ -105,7 +105,7 @@ export const startBundleBench = async (entry: string, isDev: boolean) => {
105105
entryPoints: [entry], // https://esbuild.github.io/api/#entry-points
106106
outfile: './public/bundle.js',
107107
target: 'es2015',
108-
format: 'cjs', // https://esbuild.github.io/api/#format-commonjs
108+
format: 'esm', // https://esbuild.github.io/api/#format-commonjs
109109
platform: 'browser',
110110
minify: !isDev, // https://esbuild.github.io/api/#minify
111111
bundle: true, // https://esbuild.github.io/api/#bundle

0 commit comments

Comments
 (0)