All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mvnpm.esbuild.model.BundleOptions Maven / Gradle / Ivy

The newest version!
package io.mvnpm.esbuild.model;

import java.nio.file.Path;
import java.util.List;

public record BundleOptions(List entries, List dependencies, EsBuildConfig esBuildConfig,
        Path workDir, Path nodeModulesDir) {

    public static final String NODE_MODULES = "node_modules";

    public BundleOptions(BundleOptionsBuilder builder) {
        this(builder.entries, builder.dependencies, builder.esBuildConfig, builder.workDir, builder.nodeModulesDir);
    }

    public boolean hasWorkDir() {
        return workDir == null;
    }

    public static BundleOptionsBuilder builder() {
        return new BundleOptionsBuilder();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy