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.
handler
1 parent 9d844ea commit 47210c4Copy full SHA for 47210c4
src/plugin.ts
@@ -22,6 +22,13 @@ export const CloudFrontFunctionsPlugin = (): Plugin => ({
22
build.initialOptions.target = "es5"
23
build.initialOptions.format = "cjs"
24
25
+ if (build.initialOptions.minify) {
26
+ build.initialOptions.minify = false
27
+ build.initialOptions.minifyIdentifiers = false
28
+ build.initialOptions.minifyWhitespace = true
29
+ build.initialOptions.minifySyntax = true
30
+ }
31
+
32
build.initialOptions.supported = {
33
...config,
34
...build.initialOptions.supported,
0 commit comments