Class BundlingOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.javascript.BundlingOptions.Jsii$Proxy
-
- All Implemented Interfaces:
BundlingOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- BundlingOptions
@Stability(Experimental) @Internal public static final class BundlingOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BundlingOptions
An implementation forBundlingOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.javascript.BundlingOptions
BundlingOptions.Builder, BundlingOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(BundlingOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theBundlingOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)List<String>getExternals()(experimental) You can mark a file or a package as external to exclude it from your build.BooleangetSourcemap()(experimental) Include a source map in the bundle.BooleangetWatchTask()(experimental) In addition to thebundle:xyztask, createsbundle:xyz:watchtask which will invoke the same esbuild command with the--watchflag.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(BundlingOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theBundlingOptions.Builder.
-
-
Method Detail
-
getExternals
public final List<String> getExternals()
Description copied from interface:BundlingOptions(experimental) You can mark a file or a package as external to exclude it from your build.Instead of being bundled, the import will be preserved (using require for the iife and cjs formats and using import for the esm format) and will be evaluated at run time instead.
This has several uses. First of all, it can be used to trim unnecessary code from your bundle for a code path that you know will never be executed. For example, a package may contain code that only runs in node but you will only be using that package in the browser. It can also be used to import code in node at run time from a package that cannot be bundled. For example, the fsevents package contains a native extension, which esbuild doesn't support.
Default: []
- Specified by:
getExternalsin interfaceBundlingOptions
-
getSourcemap
public final Boolean getSourcemap()
Description copied from interface:BundlingOptions(experimental) Include a source map in the bundle.Default: false
- Specified by:
getSourcemapin interfaceBundlingOptions
-
getWatchTask
public final Boolean getWatchTask()
Description copied from interface:BundlingOptions(experimental) In addition to thebundle:xyztask, createsbundle:xyz:watchtask which will invoke the same esbuild command with the--watchflag.This can be used to continusouly watch for changes.
Default: true
- Specified by:
getWatchTaskin interfaceBundlingOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-