Plugins

ESbuild

The plugin esbuild is disabled by default so to enable it you have to import and use it in the _config.js file:

import esbuild from "lume/plugins/esbuild.ts";

site.use(esbuild());

It process your Javascript and Typescript files using esbuild bundler.

The available options are:

Example with the default options:

site.use(esbuild({
  extensions: [".ts", ".js"],
  options: {
    bundle: true,
    format: "esm",
    minify: true,
    keepNames: true,
    platform: "browser",
    target: "esnext",
    incremental: true,
    treeShaking: true,
  },
}));