# Javascript

# scripts.bundler

type BalmBundler = 'webpack' | 'rollup' | 'esbuild';

scripts.bundler: BalmBundler = 'webpack'

New in 3.9.0

Default bundler.

# scripts.minify

scripts.minify: boolean = false

New in 3.9.4

Ignore the environment and force JS compression for webpack bundler.

# scripts.minifyOptions

scripts.minifyOptions: MinifyOptions

Rename options to minifyOptions in 3.9.0

Terser minify options (opens new window) for webpack and rollup bundler.

Defaults to:

{
  ecma: 5,
  parse: {
    ecma: 2017
  },
  compress: {
    warnings: false,
    comparisons: false,
    inline: 2
  },
  mangle: {
    safari10: true
  },
  output: {
    comments: false,
    ascii_only: true
  }
}

Just for production build

# scripts.lint

scripts.lint: boolean = false

The pluggable linting utility for JavaScript and JSX.

Just for production build

Last Updated: 5 months ago