# JavaScript bundler - esbuild

# scripts.entry

scripts.entry: string | string[] = ''

The shortcut for esbuild entry.

🌰 For example:

module.exports = {
  scripts: {
    bundler: 'esbuild',
    entry: ['./app/scripts/main-page.js', './app/scripts/sub-page.js']
  }
  // Other Options...
};

# scripts.buildOptions

scripts.buildOptions: BuildOptions = {}

Build options (opens new window).

# scripts.useTransform

scripts.useTransform: boolean = false

Transforming a file by custom build.

# scripts.transformOptions

scripts.transformOptions: TransformOptions = {}

Transform options (opens new window).

🌰 For example:

module.exports = {
  scripts: {
    bundler: 'esbuild',
    entry: ['./app/scripts/react-entry.js'],
    useTransform: true,
    transformOptions: {
      loader: 'jsx'
    }
  }
  // Other Options...
};
Last Updated: a year ago