Skip to content

Assembler configuration

Choose a tag to compare

@Julien-R44 Julien-R44 released this 24 Feb 10:51

Changes

A new configuration section has been added for the Assembler in the RC file. currently unstable, so use at your own risk: breakings changes are probable

We can use it to configure two things :

  • A "runner". The runner is the command that will be executed to launch your dev server and your tests.
  • Several hooks, such as onBuildStarting, onSourceFileChanged, onDevServerStarted, onBuildCompleted, which will allow you to execute code at certain times.

For example:

import { defineConfig } from '@adonisjs/core/app'

export default defineConfig({
  unstable_assembler: {
    runner: {
      name: 'bun',
      command: 'bun',
      args: [],
    },

    onBuildStarting: [
      () => import('@adonisjs/vite/build_hook')
    ],
  },
})

What's Changed

Full Changelog: v8.0.4...v8.1.0