@awsless/awsless 0.0.46 → 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.
Files changed (2) hide show
  1. package/dist/bin.js +7 -2
  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
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {