Interface BundlerOptions

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    BundlerOptions.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.96.0 (build 921e240)",
               date="2024-03-28T21:16:43.161Z")
    @Stability(Experimental)
    public interface BundlerOptions
    extends software.amazon.jsii.JsiiSerializable
    (experimental) Options for Bundler.
    • Method Detail

      • getAddToPreCompile

        @Stability(Deprecated)
        @Deprecated
        @Nullable
        default Boolean getAddToPreCompile()
        Deprecated.
        Use runBundleTask instead.
        (deprecated) Install the bundle command as a pre-compile phase.

        Default: true

      • getAssetsDir

        @Stability(Experimental)
        @Nullable
        default String getAssetsDir()
        (experimental) Output directory for all bundles.

        Default: "assets"

      • getEsbuildVersion

        @Stability(Experimental)
        @Nullable
        default String getEsbuildVersion()
        (experimental) The semantic version requirement for esbuild.

        Default: - no specific version (implies latest)

      • getLoaders

        @Stability(Experimental)
        @Nullable
        default Map<String,​String> getLoaders()
        (experimental) Map of file extensions (without dot) and loaders to use for this file type.

        Loaders are appended to the esbuild command by --loader:.extension=loader

      • getRunBundleTask

        @Stability(Experimental)
        @Nullable
        default RunBundleTask getRunBundleTask()
        (experimental) Choose which phase (if any) to add the bundle command to.

        Note: If using addBundle() with the bundleCompiledResults, this option must be set to RunBundleTask.POST_COMPILE or RunBundleTask.MANUAL.

        Default: RunBundleTask.PRE_COMPILE

        See Also:
        AddBundleOptions.bundleCompiledResults *