Skip to content

Conversation

@kerwanp
Copy link
Contributor

@kerwanp kerwanp commented Jan 6, 2026

πŸ”— Linked issue

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This pull-request adds the ability to add raw assembler hooks to the rcFile

codemods.updateRcFile((rcFile) => {
  rcFile.addNamedImport('@adonisjs/vite', ['indexPages'])
  rcFile.addAssemblerHook('init', 'indexPages()', true)
})
import { indexPages } from '@adonisjs/vite'

export default defineConfig({
  hooks: {
    init: [indexPages()]
  }
})

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@Julien-R44 Julien-R44 merged commit c17c6a9 into adonisjs:8.x Jan 7, 2026
4 checks passed
@Julien-R44
Copy link
Member

Thanks bro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants