winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.05k stars 196 forks source link

Inflight code bundles the whole winglang sdk #6992

Closed skyrpex closed 3 months ago

skyrpex commented 3 months ago

I tried this:

Run wing compile -t tf-aws main.w.

bring cloud;

let bucket = new cloud.Bucket();

let putObject = new cloud.Function(inflight () => {
   bucket.put("key", "value");
});

This happened:

All these modules are bundled in the inflight code of the function, weighting around 2.3 MB:

// node_modules/@winglang/sdk/node_modules/dotenv/package.json
// node_modules/@winglang/sdk/node_modules/dotenv/lib/main.js
// node_modules/@winglang/sdk/node_modules/dotenv-expand/lib/main.js
// node_modules/@winglang/sdk/lib/util/equality.js
// node_modules/@winglang/sdk/lib/helpers.js
// node_modules/@winglang/sdk/lib/macros.js
// node_modules/@winglang/sdk/node_modules/@smithy/types/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/protocol-http/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/middleware-stack/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/tslib/tslib.es6.mjs
// node_modules/@winglang/sdk/node_modules/@smithy/is-array-buffer/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-buffer-from/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-base64/dist-cjs/fromBase64.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-utf8/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-base64/dist-cjs/toBase64.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-base64/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-uri-escape/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/querystring-builder/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/node-http-handler/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-stream/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/smithy-client/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-middleware/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/signature-v4/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-config-provider/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/property-provider/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-endpoints/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/config-resolver/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/middleware-content-length/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/rng.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/regex.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/validate.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/stringify.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/v1.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/parse.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/v35.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/md5.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/v3.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/v4.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/sha1.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/v5.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/nil.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/version.js
// node_modules/@winglang/sdk/node_modules/uuid/dist/esm-node/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/service-error-classification/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-retry/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js
// node_modules/@winglang/sdk/node_modules/@smithy/middleware-retry/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js
// node_modules/@winglang/sdk/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js
// node_modules/@winglang/sdk/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js
// node_modules/@winglang/sdk/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js
// node_modules/@winglang/sdk/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/node-config-provider/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js
// node_modules/@winglang/sdk/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js
// node_modules/@winglang/sdk/node_modules/@smithy/querystring-parser/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/url-parser/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/middleware-serde/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/middleware-http-signing/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/util-identity-and-auth/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/getSmithyContext.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/normalizeProvider.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/protocols/requestBuilder.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/pagination/createPaginator.js
// node_modules/@winglang/sdk/node_modules/@smithy/core/dist-es/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
// node_modules/@winglang/sdk/node_modules/fast-xml-parser/src/util.js
// node_modules/@winglang/sdk/node_modules/fast-xml-parser/src/validator.js
// node_modules/@winglang/sdk/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
// node_modules/@winglang/sdk/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
// node_modules/@winglang/sdk/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
// node_modules/@winglang/sdk/node_modules/strnum/strnum.js
// node_modules/@winglang/sdk/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
// node_modules/@winglang/sdk/node_modules/fast-xml-parser/src/xmlparser/node2json.js
// node_modules/@winglang/sdk/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
// node_modules/@winglang/sdk/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js
// node_modules/@winglang/sdk/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
// node_modules/@winglang/sdk/node_modules/fast-xml-parser/src/fxp.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/core/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/client-s3/package.json
// node_modules/@winglang/sdk/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-crypto/util/build/main/convertToBuffer.js
// node_modules/@winglang/sdk/node_modules/@aws-crypto/util/build/main/isEmptyData.js
// node_modules/@winglang/sdk/node_modules/@aws-crypto/util/build/main/numToUint8.js
// node_modules/@winglang/sdk/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js
// node_modules/@winglang/sdk/node_modules/@aws-crypto/util/build/main/index.js
// node_modules/@winglang/sdk/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js
// node_modules/@winglang/sdk/node_modules/@aws-crypto/crc32/build/main/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/eventstream-codec/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/hash-node/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/hash-stream-node/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-body-length-node/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-crypto/crc32c/build/aws_crc32c.js
// node_modules/@winglang/sdk/node_modules/@aws-crypto/crc32c/build/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/streams/create-read-stream-on-buffer.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@smithy/util-waiter/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/client-s3/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js
// node_modules/@winglang/sdk/node_modules/mime-db/db.json
// node_modules/@winglang/sdk/node_modules/mime-db/index.js
// node_modules/@winglang/sdk/node_modules/mime-types/index.js
// node_modules/@winglang/sdk/package.json
// node_modules/@winglang/sdk/lib/constants.js
// node_modules/@winglang/sdk/lib/core/errors.js
// node_modules/constructs/lib/dependency.js
// node_modules/constructs/lib/private/stack-trace.js
// node_modules/constructs/lib/private/uniqueid.js
// node_modules/constructs/lib/construct.js
// node_modules/constructs/lib/metadata.js
// node_modules/constructs/lib/index.js
// node_modules/@winglang/sdk/lib/core/types.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/codegen/code.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/codegen/scope.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/codegen/index.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/util.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/names.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/errors.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/validate/boolSchema.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/rules.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/validate/applicability.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/validate/dataType.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/validate/defaults.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/code.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/validate/keyword.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/validate/subschema.js
// node_modules/@winglang/sdk/node_modules/fast-deep-equal/index.js
// node_modules/@winglang/sdk/node_modules/json-schema-traverse/index.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/resolve.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/validate/index.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/runtime/validation_error.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/ref_error.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/compile/index.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/refs/data.json
// node_modules/@winglang/sdk/node_modules/uri-js/dist/es5/uri.all.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/runtime/uri.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/core.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/core/id.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/core/ref.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/core/index.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/runtime/ucs2length.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/validation/limitLength.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/validation/pattern.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/validation/required.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/validation/limitItems.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/runtime/equal.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/validation/const.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/validation/enum.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/validation/index.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/items.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/items2020.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/contains.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/properties.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/not.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/allOf.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/if.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/applicator/index.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/format/format.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/format/index.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/metadata.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/draft7.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/discriminator/types.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/vocabularies/discriminator/index.js
// node_modules/@winglang/sdk/node_modules/ajv/dist/refs/json-schema-draft-07.json
// node_modules/@winglang/sdk/node_modules/ajv/dist/ajv.js
// node_modules/@winglang/sdk/node_modules/toml/lib/parser.js
// node_modules/@winglang/sdk/node_modules/toml/lib/compiler.js
// node_modules/@winglang/sdk/node_modules/toml/index.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/nodes/identity.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/visit.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/doc/directives.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/doc/anchors.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/doc/applyReviver.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/nodes/toJS.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/nodes/Node.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/nodes/Alias.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/nodes/Scalar.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/doc/createNode.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/nodes/Collection.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/stringify/stringifyComment.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/stringify/foldFlowLines.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/stringify/stringifyString.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/stringify/stringify.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/stringify/stringifyPair.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/log.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/nodes/addPairToJSMap.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/nodes/Pair.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/stringify/stringifyCollection.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/nodes/YAMLMap.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/common/map.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/nodes/YAMLSeq.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/common/seq.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/common/string.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/common/null.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/core/bool.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/stringify/stringifyNumber.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/core/float.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/core/int.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/core/schema.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/json/schema.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/yaml-1.1/binary.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/yaml-1.1/omap.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/yaml-1.1/bool.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/yaml-1.1/float.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/yaml-1.1/int.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/yaml-1.1/set.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/yaml-1.1/schema.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/tags.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/schema/Schema.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/stringify/stringifyDocument.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/doc/Document.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/errors.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/resolve-props.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/util-contains-newline.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/util-flow-indent-check.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/util-map-includes.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/resolve-block-map.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/resolve-block-seq.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/resolve-end.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/resolve-flow-collection.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/compose-collection.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/resolve-block-scalar.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/resolve-flow-scalar.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/compose-scalar.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/util-empty-scalar-position.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/compose-node.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/compose-doc.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/compose/composer.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/parse/cst-scalar.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/parse/cst-stringify.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/parse/cst-visit.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/parse/cst.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/parse/lexer.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/parse/line-counter.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/parse/parser.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/public-api.js
// node_modules/@winglang/sdk/node_modules/yaml/dist/index.js
// node_modules/@winglang/sdk/lib/platform/util.js
// node_modules/@winglang/sdk/lib/platform/parameter-registrar.js
// node_modules/@winglang/sdk/lib/platform/platform.js
// node_modules/@winglang/sdk/lib/platform/platform-manager.js
// node_modules/@winglang/sdk/lib/platform/index.js
// node_modules/@winglang/sdk/lib/core/connections.js
// node_modules/@winglang/sdk/lib/std/node.js
// node_modules/@winglang/sdk/lib/core/app.js
// node_modules/@winglang/sdk/lib/core/attributes.js
// node_modules/@winglang/sdk/lib/core/class-factory.js
// node_modules/@winglang/sdk/lib/core/dependency.js
// node_modules/@winglang/sdk/lib/core/tokens.js
// node_modules/@winglang/sdk/lib/core/lifting.js
// node_modules/@winglang/sdk/lib/shared/misc.js
// node_modules/@winglang/sdk/lib/core/inflight.js
// node_modules/@winglang/sdk/lib/std/resource.js
// node_modules/@winglang/sdk/lib/ui/base.js
// node_modules/@winglang/sdk/lib/ui/colors.js
// node_modules/@winglang/sdk/lib/core/tree.js
// node_modules/@winglang/sdk/lib/core/index.js
// node_modules/@winglang/sdk/lib/std/array.js
// node_modules/@winglang/sdk/lib/std/json_schema.js
// node_modules/@winglang/sdk/lib/std/bool.js
// node_modules/@winglang/sdk/lib/std/datetime.js
// node_modules/@winglang/sdk/lib/std/duration.js
// node_modules/@winglang/sdk/lib/std/generics.js
// node_modules/@winglang/sdk/lib/std/json.js
// node_modules/@winglang/sdk/lib/std/map.js
// node_modules/@winglang/sdk/lib/std/number.js
// node_modules/@winglang/sdk/lib/std/regex.js
// node_modules/@winglang/sdk/lib/std/set.js
// node_modules/@winglang/sdk/lib/std/string.js
// node_modules/@winglang/sdk/lib/std/struct.js
// node_modules/@winglang/sdk/lib/std/test.js
// node_modules/@winglang/sdk/lib/std/test-runner.js
// node_modules/@winglang/sdk/lib/std/index.js
// node_modules/@winglang/sdk/lib/cloud/api.js
// node_modules/@winglang/sdk/lib/cloud/topic.js
// node_modules/@winglang/sdk/lib/cloud/bucket.js
// node_modules/@winglang/sdk/lib/cloud/counter.js
// node_modules/@winglang/sdk/lib/cloud/domain.js
// node_modules/@winglang/sdk/lib/cloud/endpoint.js
// node_modules/@winglang/sdk/lib/shared/resource-names.js
// node_modules/@winglang/sdk/lib/cloud/function.js
// node_modules/@winglang/sdk/lib/cloud/on-deploy.js
// node_modules/@winglang/sdk/lib/cloud/queue.js
// node_modules/@winglang/sdk/node_modules/cron-validator/lib/index.js
// node_modules/@winglang/sdk/lib/cloud/schedule.js
// node_modules/@winglang/sdk/lib/cloud/secret.js
// node_modules/@winglang/sdk/lib/cloud/service.js
// node_modules/@winglang/sdk/lib/cloud/website.js
// node_modules/@winglang/sdk/lib/cloud/index.js
// node_modules/@winglang/sdk/lib/shared-aws/bucket.inflight.js

I expected this:

Most of those files shouldn't be bundled there.

Is there a workaround?

No response

Anything else?

No response

Wing Version

0.81.5

Node.js Version

No response

Platform(s)

No response

Community Notes

skyrpex commented 3 months ago

Duplicate of https://github.com/winglang/wing/issues/4103