io.mvnpm.esbuild.model.BundleOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esbuild-java Show documentation
Show all versions of esbuild-java Show documentation
Small wrapper around esbuild to be able to use it in Java
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