@awsless/awsless 0.0.564 → 0.0.565

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/prebuild.js CHANGED
@@ -19,6 +19,7 @@ import { createHash } from "crypto";
19
19
  import { dirname } from "path";
20
20
  import { rollup } from "rollup";
21
21
  import natives from "rollup-plugin-natives";
22
+ import { importAsString } from "rollup-plugin-string-import";
22
23
  import { swc, minify as swcMinify } from "rollup-plugin-swc3";
23
24
 
24
25
  // src/cli/ui/style.ts
@@ -56,7 +57,8 @@ var bundleTypeScript = async ({
56
57
  minify = true,
57
58
  file,
58
59
  nativeDir,
59
- external
60
+ external,
61
+ importAsString: importAsStringList
60
62
  }) => {
61
63
  const bundle = await rollup({
62
64
  input: file,
@@ -93,7 +95,10 @@ var bundleTypeScript = async ({
93
95
  sourceMap: true,
94
96
  compress: true
95
97
  }) : void 0,
96
- json()
98
+ json(),
99
+ importAsStringList ? importAsString({
100
+ include: importAsStringList
101
+ }) : void 0
97
102
  ]
98
103
  });
99
104
  const ext = format === "esm" ? "mjs" : "js";