@awsless/awsless 0.0.45 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +9 -2
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -798,7 +798,7 @@ var formatByteSize = (size) => {
|
|
|
798
798
|
// src/formation/resource/lambda/util/rollup.ts
|
|
799
799
|
import { rollup } from "rollup";
|
|
800
800
|
import { createHash } from "crypto";
|
|
801
|
-
import { swc } from "rollup-plugin-swc3";
|
|
801
|
+
import { swc, minify as swcMinify } from "rollup-plugin-swc3";
|
|
802
802
|
import json from "@rollup/plugin-json";
|
|
803
803
|
import commonjs from "@rollup/plugin-commonjs";
|
|
804
804
|
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
@@ -822,13 +822,18 @@ var rollupBundle = ({ format: format2 = "esm", minify = true, handler = "index.d
|
|
|
822
822
|
// @ts-ignore
|
|
823
823
|
nodeResolve({ preferBuiltins: true }),
|
|
824
824
|
swc({
|
|
825
|
-
minify,
|
|
825
|
+
// minify,
|
|
826
|
+
// module: true,
|
|
826
827
|
jsc: {
|
|
827
828
|
baseUrl: dirname(input),
|
|
828
829
|
minify: { sourceMap: true }
|
|
829
830
|
},
|
|
830
831
|
sourceMaps: true
|
|
831
832
|
}),
|
|
833
|
+
minify ? swcMinify({
|
|
834
|
+
module: format2 === "esm",
|
|
835
|
+
sourceMap: true
|
|
836
|
+
}) : void 0,
|
|
832
837
|
// @ts-ignore
|
|
833
838
|
json()
|
|
834
839
|
]
|
|
@@ -1234,6 +1239,8 @@ var FunctionSchema = z6.union([
|
|
|
1234
1239
|
z6.object({
|
|
1235
1240
|
/** The file path of the function code. */
|
|
1236
1241
|
file: LocalFileSchema,
|
|
1242
|
+
// /** */
|
|
1243
|
+
// handler: z.string().optional(),
|
|
1237
1244
|
/** Put the function inside your global VPC.
|
|
1238
1245
|
* @default false
|
|
1239
1246
|
*/
|