@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.831Z") @Stability(value=Experimental) public class Bundler extends Component
In the future, this will also supports bundling websites.
| Modifier and Type | Class and Description |
|---|---|
static class |
Bundler.Builder
(experimental) A fluent builder for
Bundler. |
| Modifier | Constructor and Description |
|---|---|
protected |
Bundler(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Bundler(software.amazon.jsii.JsiiObjectRef objRef) |
|
Bundler(Project project)
(experimental) Creates a `Bundler`.
|
|
Bundler(Project project,
BundlerOptions options)
(experimental) Creates a `Bundler`.
|
| Modifier and Type | Method and Description |
|---|---|
Bundle |
addBundle(String entrypoint,
AddBundleOptions options)
(experimental) Adds a task to the project which bundles a specific entrypoint and all of its dependencies into a single javascript output file.
|
String |
getBundledir()
(experimental) Root bundle directory.
|
Task |
getBundleTask()
(experimental) Gets or creates the singleton "bundle" task of the project.
|
String |
getEsbuildVersion()
(experimental) The semantic version requirement for `esbuild` (if defined).
|
static Bundler |
of(Project project)
(experimental) Returns the `Bundler` instance associated with a project or `undefined` if there is no Bundler.
|
getProject, postSynthesize, preSynthesize, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Bundler(software.amazon.jsii.JsiiObjectRef objRef)
protected Bundler(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Bundler(@NotNull
Project project,
@Nullable
BundlerOptions options)
project - This parameter is required.options - @Stability(value=Experimental)
public Bundler(@NotNull
Project project)
project - This parameter is required.@Stability(value=Experimental) @Nullable public static Bundler of(@NotNull Project project)
project - The project. This parameter is required.@Stability(value=Experimental) @NotNull public Bundle addBundle(@NotNull String entrypoint, @NotNull AddBundleOptions options)
entrypoint - The relative path of the artifact within the project. This parameter is required.options - Bundling options. This parameter is required.@Stability(value=Experimental) @NotNull public String getBundledir()
@Stability(value=Experimental) @NotNull public Task getBundleTask()
If the project doesn't have a "bundle" task, it will be created and spawned during the pre-compile phase.
@Stability(value=Experimental) @Nullable public String getEsbuildVersion()
Copyright © 2021. All rights reserved.