We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eca8f12 commit 98f4bdeCopy full SHA for 98f4bde
.changeset/fuzzy-donuts-double.md
@@ -0,0 +1,9 @@
1
+---
2
+"esbuild-cf-functions-plugin": patch
3
4
+
5
+Changed the output format to ES modules.
6
7
+This should always result in smaller output file sizes!
8
9
+For example, the example function went from `1.3kb` to `0.45kb`!
src/plugin.ts
@@ -20,7 +20,7 @@ export const CloudFrontFunctionsPlugin = (): Plugin => ({
20
21
setup: (build) => {
22
build.initialOptions.target = "es5"
23
- build.initialOptions.format = "cjs"
+ build.initialOptions.format = "esm"
24
25
if (build.initialOptions.minify) {
26
build.initialOptions.minify = false
0 commit comments