package awslambdanodejs // Charset for esbuild's output. // // Example: // nodejs.NewNodejsFunction(this, jsii.String("my-handler"), &NodejsFunctionProps{ // Bundling: &BundlingOptions{ // Minify: jsii.Boolean(true), // // minify code, defaults to false // SourceMap: jsii.Boolean(true), // // include source map, defaults to false // SourceMapMode: nodejs.SourceMapMode_INLINE, // // defaults to SourceMapMode.DEFAULT // SourcesContent: jsii.Boolean(false), // // do not include original source into source map, defaults to true // Target: jsii.String("es2020"), // // target environment for the generated JavaScript code // Loader: map[string]*string{ // // Use the 'dataurl' loader for '.png' files // ".png": jsii.String("dataurl"), // }, // Define: map[string]*string{ // // Replace strings during build time // "process.env.API_KEY": JSON.stringify(jsii.String("xxx-xxxx-xxx")), // "process.env.PRODUCTION": JSON.stringify(jsii.Boolean(true)), // "process.env.NUMBER": JSON.stringify(jsii.Number(123)), // }, // LogLevel: nodejs.LogLevel_SILENT, // // defaults to LogLevel.WARNING // KeepNames: jsii.Boolean(true), // // defaults to false // Tsconfig: jsii.String("custom-tsconfig.json"), // // use custom-tsconfig.json instead of default, // Metafile: jsii.Boolean(true), // // include meta file, defaults to false // Banner: jsii.String("/* comments */"), // // requires esbuild >= 0.9.0, defaults to none // Footer: jsii.String("/* comments */"), // // requires esbuild >= 0.9.0, defaults to none // Charset: nodejs.Charset_UTF8, // // do not escape non-ASCII characters, defaults to Charset.ASCII // Format: nodejs.OutputFormat_ESM, // // ECMAScript module output format, defaults to OutputFormat.CJS (OutputFormat.ESM requires Node.js 14.x) // MainFields: []*string{ // jsii.String("module"), // jsii.String("main"), // }, // // prefer ECMAScript versions of dependencies // Inject: []*string{ // jsii.String("./my-shim.js"), // jsii.String("./other-shim.js"), // }, // // allows to automatically replace a global variable with an import from another file // EsbuildArgs: map[string]interface{}{ // // Pass additional arguments to esbuild // "--log-limit": jsii.String("0"), // "--splitting": jsii.Boolean(true), // }, // }, // }) // type Charset string const ( // ASCII. // // Any non-ASCII characters are escaped using backslash escape sequences. Charset_ASCII Charset = "ASCII" // UTF-8. // // Keep original characters without using escape sequences. Charset_UTF8 Charset = "UTF8" )